diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-25 03:08:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-25 03:08:37 +0300 |
commit | 39029943851dfc318fabb95357e00b81d2735547 (patch) | |
tree | dfd195791587c51e6dca166dda8a016a1760d3bf /src/gui/setup_theme.cpp | |
parent | 10f59701112130cf953a2af7ef4ae82d9d823fe6 (diff) | |
download | ManaVerse-39029943851dfc318fabb95357e00b81d2735547.tar.gz ManaVerse-39029943851dfc318fabb95357e00b81d2735547.tar.bz2 ManaVerse-39029943851dfc318fabb95357e00b81d2735547.tar.xz ManaVerse-39029943851dfc318fabb95357e00b81d2735547.zip |
Improve empty strings manipulation.
Diffstat (limited to 'src/gui/setup_theme.cpp')
-rw-r--r-- | src/gui/setup_theme.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/setup_theme.cpp b/src/gui/setup_theme.cpp index 658877eed..277ddadae 100644 --- a/src/gui/setup_theme.cpp +++ b/src/gui/setup_theme.cpp @@ -312,7 +312,7 @@ void Setup_Theme::updateInfo() } else { - mThemeInfo = ""; + mThemeInfo.clear(); } replaceAll(mThemeInfo, "\\n", "\n"); mInfoButton->setEnabled(!mThemeInfo.empty()); @@ -324,7 +324,7 @@ void Setup_Theme::action(const gcn::ActionEvent &event) if (event.getId() == ACTION_THEME) { if (mThemeDropDown->getSelected() == 0) - mTheme = ""; + mTheme.clear(); else mTheme = mThemeDropDown->getSelectedString(); updateInfo(); @@ -337,7 +337,7 @@ void Setup_Theme::action(const gcn::ActionEvent &event) { const int id = mLangDropDown->getSelected(); if (id < 0 || id >= langs_count) - mLang = ""; + mLang.clear(); else mLang = LANG_NAME[id].value; } |