summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-26 00:01:56 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-26 00:01:56 +0300
commit803b6afd00b0e3574b40b866f21a0d3d01f6dc4d (patch)
tree8a55ef881f1eaac4d216b3f5d2c4605eb520070d /src/gui/gui.cpp
parent8478d540748edccf36dc9bda5f0c3de0aa7bf763 (diff)
downloadmv-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.tar.gz
mv-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.tar.bz2
mv-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.tar.xz
mv-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.zip
Improve string usage in other files.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 3a5964924..205bdff5a 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -129,8 +129,8 @@ Gui::Gui(Graphics *const graphics) :
}
catch (const gcn::Exception &e)
{
- logger->error(std::string("Unable to load '") + fontFile +
- std::string("': ") + e.getMessage());
+ logger->error(std::string("Unable to load '").append(fontFile)
+ .append("': ").append(e.getMessage()));
}
// Set particle font
@@ -154,8 +154,8 @@ Gui::Gui(Graphics *const graphics) :
}
catch (const gcn::Exception &e)
{
- logger->error(std::string("Unable to load '") + fontFile +
- std::string("': ") + e.getMessage());
+ logger->error(std::string("Unable to load '").append(fontFile)
+ .append("': ").append(e.getMessage()));
}
// Set bold font
@@ -169,8 +169,8 @@ Gui::Gui(Graphics *const graphics) :
}
catch (const gcn::Exception &e)
{
- logger->error(std::string("Unable to load '") + fontFile +
- std::string("': ") + e.getMessage());
+ logger->error(std::string("Unable to load '").append(fontFile)
+ .append("': ").append(e.getMessage()));
}
// Set help font
@@ -184,8 +184,8 @@ Gui::Gui(Graphics *const graphics) :
}
catch (const gcn::Exception &e)
{
- logger->error(std::string("Unable to load '") + fontFile +
- std::string("': ") + e.getMessage());
+ logger->error(std::string("Unable to load '").append(fontFile)
+ .append("': ").append(e.getMessage()));
}
// Set secure font
@@ -199,8 +199,8 @@ Gui::Gui(Graphics *const graphics) :
}
catch (const gcn::Exception &e)
{
- logger->error(std::string("Unable to load '") + fontFile +
- std::string("': ") + e.getMessage());
+ logger->error(std::string("Unable to load '").append(fontFile)
+ .append("': ").append(e.getMessage()));
}
// Set npc font
@@ -215,8 +215,8 @@ Gui::Gui(Graphics *const graphics) :
}
catch (const gcn::Exception &e)
{
- logger->error(std::string("Unable to load '") + fontFile +
- std::string("': ") + e.getMessage());
+ logger->error(std::string("Unable to load '").append(fontFile)
+ .append("': ").append(e.getMessage()));
}
gcn::Widget::setGlobalFont(mGuiFont);