From 520a495c466793c29f3e721634dfe6cc616b8ede Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 1 May 2014 23:56:03 +0300 Subject: Add missing const. --- src/gui/windows/unregisterdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/windows/unregisterdialog.cpp') diff --git a/src/gui/windows/unregisterdialog.cpp b/src/gui/windows/unregisterdialog.cpp index 3d8627add..e35c27aa2 100644 --- a/src/gui/windows/unregisterdialog.cpp +++ b/src/gui/windows/unregisterdialog.cpp @@ -110,7 +110,7 @@ void UnRegisterDialog::action(const ActionEvent &event) } else if (eventId == "unregister") { - const std::string username = mLoginData->username.c_str(); + const std::string username = mLoginData->username; const std::string &password = mPasswordField->getText(); logger->log("UnregisterDialog::unregistered, Username is %s", username.c_str()); -- cgit v1.2.3-70-g09d2