diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-28 20:06:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-28 20:06:11 +0300 |
commit | be9b998b2ee87c0238c2ed1b41c8c2bc723f4ce4 (patch) | |
tree | 30427f083bce1d1a67ab3ad17d33a87ee9b21565 /src/gui/models/langlistmodel.h | |
parent | 861c503c608b41256bca47dedee15dc01e09527d (diff) | |
download | manaverse-be9b998b2ee87c0238c2ed1b41c8c2bc723f4ce4.tar.gz manaverse-be9b998b2ee87c0238c2ed1b41c8c2bc723f4ce4.tar.bz2 manaverse-be9b998b2ee87c0238c2ed1b41c8c2bc723f4ce4.tar.xz manaverse-be9b998b2ee87c0238c2ed1b41c8c2bc723f4ce4.zip |
Fix formatting in gui files.
Diffstat (limited to 'src/gui/models/langlistmodel.h')
-rw-r--r-- | src/gui/models/langlistmodel.h | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/src/gui/models/langlistmodel.h b/src/gui/models/langlistmodel.h index 124d86cf4..0404fc5ae 100644 --- a/src/gui/models/langlistmodel.h +++ b/src/gui/models/langlistmodel.h @@ -81,48 +81,48 @@ const Language LANG_NAME[langs_count] = class LangListModel final : public ExtendedListModel { -public: - LangListModel() - { - ResourceManager *const resman = ResourceManager::getInstance(); - for (int f = 0; f < langs_count; f ++) + public: + LangListModel() { - mIcons[f] = resman->getImage("graphics/flags/" - + LANG_NAME[f].icon); + ResourceManager *const resman = ResourceManager::getInstance(); + for (int f = 0; f < langs_count; f ++) + { + mIcons[f] = resman->getImage("graphics/flags/" + + LANG_NAME[f].icon); + } } - } - A_DELETE_COPY(LangListModel) + A_DELETE_COPY(LangListModel) - ~LangListModel() - { - for (int f = 0; f < langs_count; f ++) + ~LangListModel() { - Image *const img = mIcons[f]; - if (img) - img->decRef(); + for (int f = 0; f < langs_count; f ++) + { + Image *const img = mIcons[f]; + if (img) + img->decRef(); + } } - } - int getNumberOfElements() override final A_WARN_UNUSED - { return langs_count; } + int getNumberOfElements() override final A_WARN_UNUSED + { return langs_count; } - std::string getElementAt(int i) override final A_WARN_UNUSED - { - if (i >= getNumberOfElements() || i < 0) - return "???"; + std::string getElementAt(int i) override final A_WARN_UNUSED + { + if (i >= getNumberOfElements() || i < 0) + return "???"; - return gettext(LANG_NAME[i].name.c_str()); - } + return gettext(LANG_NAME[i].name.c_str()); + } - const Image *getImageAt(int i) override final A_WARN_UNUSED - { - if (i >= getNumberOfElements() || i < 0) - return nullptr; - return mIcons[i]; - } + const Image *getImageAt(int i) override final A_WARN_UNUSED + { + if (i >= getNumberOfElements() || i < 0) + return nullptr; + return mIcons[i]; + } - Image *mIcons[langs_count]; + Image *mIcons[langs_count]; }; #endif // GUI_MODELS_LANGLISTMODEL_H |