From d2f4bf9efb3009bde48b3f33ed81897693539503 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 13 Nov 2015 21:03:20 +0300 Subject: Fix compilation warnings. --- src/gui/windows/registerdialog.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/gui/windows/registerdialog.cpp b/src/gui/windows/registerdialog.cpp index 2377d1928..06a47c6b5 100644 --- a/src/gui/windows/registerdialog.cpp +++ b/src/gui/windows/registerdialog.cpp @@ -227,18 +227,14 @@ void RegisterDialog::action(const ActionEvent &event) else if (mEmailField && mEmailField->getText().find("@") == std::string::npos) { - errorMsg = strprintf - // TRANSLATORS: error message - (_("Incorrect email."), - minUser); + // TRANSLATORS: error message + errorMsg = _("Incorrect email."); error = 1; } else if (mEmailField && mEmailField->getText().size() > 40) { - errorMsg = strprintf - // TRANSLATORS: error message - (_("Email too long."), - minUser); + // TRANSLATORS: error message + errorMsg = _("Email too long."); error = 1; } -- cgit v1.2.3-70-g09d2