From 6c05739c62484dae8d5ed9fb0dfdb6590aacfe88 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 Sep 2013 13:48:24 +0300 Subject: improve a bit strings declaration. --- src/gui/setup_input.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/setup_input.cpp') 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(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); } -- cgit v1.2.3-60-g2f50