summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-08 03:51:32 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-08 03:51:32 +0300
commit90656bf081fde45eb6e1aab2cd50a3a2b8dd17c8 (patch)
treeb6fe4d5494381abfe7800022a67bbdfd2e20f97e /src/gui/windows
parentb0d6ef00eebb7dcd03b051db63840c04243a784d (diff)
downloadplus-90656bf081fde45eb6e1aab2cd50a3a2b8dd17c8.tar.gz
plus-90656bf081fde45eb6e1aab2cd50a3a2b8dd17c8.tar.bz2
plus-90656bf081fde45eb6e1aab2cd50a3a2b8dd17c8.tar.xz
plus-90656bf081fde45eb6e1aab2cd50a3a2b8dd17c8.zip
Remove useless string initialisations.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/chatwindow.cpp2
-rw-r--r--src/gui/windows/logindialog.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index a9c686f3a..8ef8e9f75 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -1370,7 +1370,7 @@ std::string ChatWindow::addColors(std::string &msg)
return msg;
}
- std::string newMsg("");
+ std::string newMsg;
const int cMap[] = {1, 4, 5, 2, 3, 6, 7, 9, 0, 8};
// rainbow
diff --git a/src/gui/windows/logindialog.cpp b/src/gui/windows/logindialog.cpp
index 746d37878..e99d1b68e 100644
--- a/src/gui/windows/logindialog.cpp
+++ b/src/gui/windows/logindialog.cpp
@@ -51,8 +51,8 @@
#include "debug.h"
-std::string LoginDialog::savedPassword("");
-std::string LoginDialog::savedPasswordKey("");
+std::string LoginDialog::savedPassword;
+std::string LoginDialog::savedPasswordKey;
namespace
{