summaryrefslogtreecommitdiff
path: root/src/logger.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-25 03:35:52 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-25 03:35:52 +0300
commit8478d540748edccf36dc9bda5f0c3de0aa7bf763 (patch)
tree941a08937450982abb8781e8dd4bd4bd209cf88c /src/logger.cpp
parent6ce49efadfadd8eacb048df274979736bb04daf0 (diff)
downloadplus-8478d540748edccf36dc9bda5f0c3de0aa7bf763.tar.gz
plus-8478d540748edccf36dc9bda5f0c3de0aa7bf763.tar.bz2
plus-8478d540748edccf36dc9bda5f0c3de0aa7bf763.tar.xz
plus-8478d540748edccf36dc9bda5f0c3de0aa7bf763.zip
Improve string usage in other files.
Diffstat (limited to 'src/logger.cpp')
-rw-r--r--src/logger.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index e9ef6173f..c6ccbdbe8 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -222,7 +222,8 @@ void Logger::safeError(const std::string &error_text)
// (ConstStr255Param) msg, nullptr, nullptr);
#elif defined(__linux__) || defined(__linux)
std::cerr << "Error: " << error_text << std::endl;
- const std::string msg = "xmessage \"" + error_text + "\"";
+ const std::string msg = std::string("xmessage \"").append(
+ error_text).append("\"");
if (system(msg.c_str()) == -1)
std::cerr << "Error: " << error_text << std::endl;
#else