From 15c5816a35381ebe33cc9e220979c52f8b47dab1 Mon Sep 17 00:00:00 2001 From: John Ratliff Date: Sat, 17 Sep 2022 16:49:16 -0400 Subject: [PATCH] clang-format code --- source/model/comparerawcode.hh | 8 ++++++-- source/model/gamegeniecode.hh | 10 +++++++--- source/model/rawcode.hh | 8 ++++++-- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/source/model/comparerawcode.hh b/source/model/comparerawcode.hh index 91c38bb..3ea9c1b 100644 --- a/source/model/comparerawcode.hh +++ b/source/model/comparerawcode.hh @@ -54,8 +54,12 @@ namespace ggencoder { void setCompare(int compare); }; - inline bool CompareRawCode::hasCompare() const { return (compare != -1); } - inline int CompareRawCode::getCompare() const { return compare; } + inline bool CompareRawCode::hasCompare() const { + return (compare != -1); + } + inline int CompareRawCode::getCompare() const { + return compare; + } inline void CompareRawCode::setCompare(int compare) { this->compare = (compare & 0xFF); }; diff --git a/source/model/gamegeniecode.hh b/source/model/gamegeniecode.hh index 7b61420..2ad906b 100644 --- a/source/model/gamegeniecode.hh +++ b/source/model/gamegeniecode.hh @@ -78,9 +78,13 @@ namespace ggencoder { }; inline GameGenieCode::~GameGenieCode() {} - inline int GameGenieCode::getAlphabetCount() const { return 16; } - inline const QString &GameGenieCode::getCode() const { return code; } - inline void GameGenieCode::setCode(const QString &code) { + inline int GameGenieCode::getAlphabetCount() const { + return 16; + } + inline const QString &GameGenieCode::getCode() const { + return code; + } + inline void GameGenieCode::setCode(const QString &code) { this->code = code.toUpper(); } } // namespace ggencoder diff --git a/source/model/rawcode.hh b/source/model/rawcode.hh index b4d004c..9472b5d 100644 --- a/source/model/rawcode.hh +++ b/source/model/rawcode.hh @@ -68,8 +68,12 @@ namespace ggencoder { }; inline RawCode::~RawCode() {} - inline int RawCode::getAddress() const { return address; } - inline int RawCode::getValue() const { return value; } + inline int RawCode::getAddress() const { + return address; + } + inline int RawCode::getValue() const { + return value; + } } // namespace ggencoder #endif