diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-25 13:48:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-25 13:48:24 +0300 |
commit | 6c05739c62484dae8d5ed9fb0dfdb6590aacfe88 (patch) | |
tree | df4a3e32b8ad9e77d894280966a0066f4aef0a94 /src/gui/setup_input.cpp | |
parent | 9a970ba6bc80938b56f3ba731bf4614b40ba573d (diff) | |
download | manaverse-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.tar.gz manaverse-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.tar.bz2 manaverse-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.tar.xz manaverse-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.zip |
improve a bit strings declaration.
Diffstat (limited to 'src/gui/setup_input.cpp')
-rw-r--r-- | src/gui/setup_input.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/setup_input.cpp b/src/gui/setup_input.cpp index 0a395e6bb..3873c2dd3 100644 --- a/src/gui/setup_input.cpp +++ b/src/gui/setup_input.cpp @@ -285,7 +285,7 @@ void Setup_Input::action(const gcn::ActionEvent &event) else if (strStartWith(id, "tabs_")) { int k = 0; - std::string str = "tabs_"; + std::string str("tabs_"); while (pages[k]) { if (str + pages[k] == id) @@ -307,8 +307,8 @@ void Setup_Input::refreshAssignedKey(const int index) const SetupActionData &key = setupActionData[selectedData][index]; if (key.actionId == static_cast<int>(Input::KEY_NO_VALUE)) { - const std::string str = " \342\200\225\342\200\225\342\200\225" - "\342\200\225\342\200\225 "; + const std::string str(" \342\200\225\342\200\225\342\200\225" + "\342\200\225\342\200\225 "); mKeyListModel->setElementAt(index, str + gettext(key.name.c_str()) + str); } |