OSDN Git Service

kdesu: do not assign string for error message, just pass along
authorIvailo Monev <xakepa10@gmail.com>
Sat, 11 Jul 2015 11:55:18 +0000 (14:55 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Sat, 11 Jul 2015 11:55:18 +0000 (14:55 +0300)
kdesu/kdesu/kdesu.cpp

index e3fe99c..5a4de17 100644 (file)
@@ -357,8 +357,7 @@ static int startApp()
     int needpw = proc.checkNeedPassword();
     if (needpw < 0)
     {
-        QString err = i18n("Su returned with an error.\n");
-        KMessageBox::error(0L, err);
+        KMessageBox::error(0L, i18n("Su returned with an error.\n"));
         exit(1);
     }
     if (needpw == 0)