summaryrefslogtreecommitdiff
path: root/src/logger.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-25 13:48:24 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-25 13:48:24 +0300
commit6c05739c62484dae8d5ed9fb0dfdb6590aacfe88 (patch)
treedf4a3e32b8ad9e77d894280966a0066f4aef0a94 /src/logger.cpp
parent9a970ba6bc80938b56f3ba731bf4614b40ba573d (diff)
downloadmanaverse-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.tar.gz
manaverse-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.tar.bz2
manaverse-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.tar.xz
manaverse-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.zip
improve a bit strings declaration.
Diffstat (limited to 'src/logger.cpp')
-rw-r--r--src/logger.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index 13ed54fee..35da8973e 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -225,8 +225,8 @@ void Logger::error(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 happend. "
- "Please see log file for more information.\"";
+ const std::string msg("xmessage \"Error happend. "
+ "Please see log file for more information.\"");
if (system(msg.c_str()) == -1)
std::cerr << "Error: " << error_text << std::endl;
#else