From ad148587dcf5244c2d2011dba339786c765c54c4 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Wed, 4 Nov 2020 16:19:54 +0100 Subject: Make Lint Happy --- src/util/enriched_string.h | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) (limited to 'src/util/enriched_string.h') diff --git a/src/util/enriched_string.h b/src/util/enriched_string.h index c8a095887..9bcccc060 100644 --- a/src/util/enriched_string.h +++ b/src/util/enriched_string.h @@ -23,15 +23,18 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include -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 &colors); + const std::vector &colors); void clear(); void operator=(const wchar_t *str); void addAtEnd(const std::wstring &s, const irr::video::SColor &color); @@ -67,23 +70,11 @@ 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; -- cgit v1.2.3