diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-11-04 16:57:41 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-11-04 16:57:41 +0100 |
commit | 6ccb5835ff55d85156be91473c598eca9d6cb9a6 (patch) | |
tree | 7f1eaf8b94694c8e24e206909ba8f55a1ebfbb3e /src/util/enriched_string.h | |
parent | 244713971a976e43e8740b6a9d9d122e37020ef2 (diff) | |
download | dragonfireclient-6ccb5835ff55d85156be91473c598eca9d6cb9a6.tar.xz |
Revert "Make Lint Happy"
This reverts commit ad148587dcf5244c2d2011dba339786c765c54c4.
Diffstat (limited to 'src/util/enriched_string.h')
-rw-r--r-- | src/util/enriched_string.h | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/src/util/enriched_string.h b/src/util/enriched_string.h index 9bcccc060..c8a095887 100644 --- a/src/util/enriched_string.h +++ b/src/util/enriched_string.h @@ -23,18 +23,15 @@ with this program; if not, write to the Free Software Foundation, Inc., #include <vector> #include <SColor.h> -class EnrichedString -{ +class EnrichedString { public: EnrichedString(); EnrichedString(const std::wstring &s, - const irr::video::SColor &color = irr::video::SColor( - 255, 255, 255, 255)); + const irr::video::SColor &color = irr::video::SColor(255, 255, 255, 255)); EnrichedString(const wchar_t *str, - const irr::video::SColor &color = irr::video::SColor( - 255, 255, 255, 255)); + const irr::video::SColor &color = irr::video::SColor(255, 255, 255, 255)); EnrichedString(const std::wstring &string, - const std::vector<irr::video::SColor> &colors); + const std::vector<irr::video::SColor> &colors); void clear(); void operator=(const wchar_t *str); void addAtEnd(const std::wstring &s, const irr::video::SColor &color); @@ -70,11 +67,23 @@ public: { return !(*this == other); } - inline bool empty() const { return m_string.empty(); } - inline size_t size() const { return m_string.size(); } + inline bool empty() const + { + return m_string.empty(); + } + inline size_t size() const + { + return m_string.size(); + } - inline bool hasBackground() const { return m_has_background; } - inline irr::video::SColor getBackground() const { return m_background; } + inline bool hasBackground() const + { + return m_has_background; + } + inline irr::video::SColor getBackground() const + { + return m_background; + } inline void setBackground(const irr::video::SColor &color) { m_background = color; |