From 803b6afd00b0e3574b40b866f21a0d3d01f6dc4d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Feb 2013 00:01:56 +0300 Subject: Improve string usage in other files. --- src/gui/gui.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/gui/gui.cpp') 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); -- cgit v1.2.3-60-g2f50