summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/models/modelistmodel.cpp2
-rw-r--r--src/gui/windows/chatwindow.cpp2
-rw-r--r--src/gui/windows/logindialog.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/models/modelistmodel.cpp b/src/gui/models/modelistmodel.cpp
index 3c39921ad..d1253b9f1 100644
--- a/src/gui/models/modelistmodel.cpp
+++ b/src/gui/models/modelistmodel.cpp
@@ -90,7 +90,7 @@ void ModeListModel::addCustomMode(const std::string &mode)
int ModeListModel::getIndexOf(const std::string &widthXHeightMode)
{
- std::string currentMode("");
+ std::string currentMode;
for (int i = 0; i < getNumberOfElements(); i++)
{
currentMode = getElementAt(i);
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
{