From 4eb075d1a3f109a48c14fc3e5d759a0cde62a370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 28 Aug 2018 02:59:15 +0200 Subject: Fix 'format not a string literal' error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/traylabelmgr.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/traylabelmgr.cpp') diff --git a/src/traylabelmgr.cpp b/src/traylabelmgr.cpp index 54a789e..cbc007f 100644 --- a/src/traylabelmgr.cpp +++ b/src/traylabelmgr.cpp @@ -206,7 +206,7 @@ bool TrayLabelMgr::processCommand(int argc, char** argv) case '?': return false; case 'a': - qDebug(i18n("Girish Ramakrishnan (gramakri@uiuc.edu)").local8Bit()); + qDebug("%s", i18n("Girish Ramakrishnan (gramakri@uiuc.edu)").local8Bit().data()); return false; case 'b': check_normality = false; @@ -281,8 +281,8 @@ QTrayLabel *TrayLabelMgr::selectAndDock(Window w, bool checkNormality) { if (w == None) { - qDebug(i18n("Select the application/window to dock with button1.").local8Bit()); - qDebug(i18n("Click any other button to abort\n").local8Bit()); + qDebug("%s", i18n("Select the application/window to dock with button1.").local8Bit().data()); + qDebug("%s", i18n("Click any other button to abort\n").local8Bit().data()); const char *err = NULL; @@ -352,7 +352,7 @@ QTrayLabel *TrayLabelMgr::dockApplication(char *argv[]) if (execvp(argv[0], argv) == -1) { - qDebug(i18n("Failed to exec [%1]: %2").arg(argv[0]).arg(strerror(errno)).local8Bit()); + qDebug("%s", i18n("Failed to exec [%1]: %2").arg(argv[0]).arg(strerror(errno)).local8Bit().data()); ::exit(0); // will become a zombie in some systems :( return NULL; } -- cgit v1.2.1