From 374958f442e6dc473b778448d9a20e7a75e8c654 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Tue, 19 Mar 2019 14:30:46 +0530 Subject: HDB: Update HDB to the Code Formatting Conventions --- engines/hdb/hdb.cpp | 3 +-- engines/hdb/hdb.h | 11 +++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 83e29cb06a..b254d05e4f 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -77,8 +77,7 @@ Common::Error HDBGame::run() { void HDBGame::readMPC(const Common::String &filename) { if (!file.open(filename)) { error("readMPC(): Error reading MPC file"); - } - else { + } else { dataHeader.signature[0] = file.readByte(); dataHeader.signature[1] = file.readByte(); dataHeader.signature[2] = file.readByte(); diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h index 4fe1156a23..d03e61a513 100644 --- a/engines/hdb/hdb.h +++ b/engines/hdb/hdb.h @@ -57,7 +57,6 @@ public: Common::Platform getPlatform() const; private: - Console *_console; Common::File file; @@ -67,11 +66,11 @@ private: uint32 dirSize; bool isValid() { - return (signature[0] == 'M') && - (signature[1] == 'P') && - (signature[2] == 'C') && - (signature[3] == 'U') && - (signature[4] == '\0'); + return (signature[0] == 'M') && + (signature[1] == 'P') && + (signature[2] == 'C') && + (signature[3] == 'U') && + (signature[4] == '\0'); } } dataHeader; -- cgit v1.2.3