Skip to content

Commit

Permalink
clang-format code
Browse files Browse the repository at this point in the history
  • Loading branch information
jdratlif committed Sep 17, 2022
1 parent dee8545 commit 15c5816
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
8 changes: 6 additions & 2 deletions source/model/comparerawcode.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down
10 changes: 7 additions & 3 deletions source/model/gamegeniecode.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions source/model/rawcode.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 15c5816

Please sign in to comment.