summaryrefslogtreecommitdiff
path: root/src/gui/models/langlistmodel.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-28 20:06:11 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-28 20:06:11 +0300
commitbe9b998b2ee87c0238c2ed1b41c8c2bc723f4ce4 (patch)
tree30427f083bce1d1a67ab3ad17d33a87ee9b21565 /src/gui/models/langlistmodel.h
parent861c503c608b41256bca47dedee15dc01e09527d (diff)
downloadplus-be9b998b2ee87c0238c2ed1b41c8c2bc723f4ce4.tar.gz
plus-be9b998b2ee87c0238c2ed1b41c8c2bc723f4ce4.tar.bz2
plus-be9b998b2ee87c0238c2ed1b41c8c2bc723f4ce4.tar.xz
plus-be9b998b2ee87c0238c2ed1b41c8c2bc723f4ce4.zip
Fix formatting in gui files.
Diffstat (limited to 'src/gui/models/langlistmodel.h')
-rw-r--r--src/gui/models/langlistmodel.h62
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