diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-08-28 02:59:15 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-08-28 02:59:15 +0200 |
commit | 4eb075d1a3f109a48c14fc3e5d759a0cde62a370 (patch) | |
tree | 746b780a80ae5b9a74a628fe7dc0cb458ebc626d /src/traylabelmgr.cpp | |
parent | ea783a62fc1487b555cb7fac0c50a0dd782bd463 (diff) | |
download | tdedocker-4eb075d1a3f109a48c14fc3e5d759a0cde62a370.tar.gz tdedocker-4eb075d1a3f109a48c14fc3e5d759a0cde62a370.zip |
Fix 'format not a string literal' error
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/traylabelmgr.cpp')
-rw-r--r-- | src/traylabelmgr.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |