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/kdocker.cpp | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'src/kdocker.cpp') diff --git a/src/kdocker.cpp b/src/kdocker.cpp index ded1643..b85198d 100644 --- a/src/kdocker.cpp +++ b/src/kdocker.cpp @@ -90,32 +90,32 @@ void KDocker::printVersion(void) // Prints the CLI arguments. Does not return void KDocker::printUsage(char optopt) { - if (optopt != 'h') qDebug(i18n("kdocker: invalid option -- %1").arg(optopt).local8Bit()); - - qDebug(i18n("Usage: KDocker [options] command\n").local8Bit()); - qDebug(i18n("Docks any application into the system tray\n").local8Bit()); - qDebug(i18n("command \tCommand to execute\n").local8Bit()); - qDebug(i18n("Options").local8Bit()); - qDebug(i18n("-a \tShow author information").local8Bit()); - qDebug(i18n("-b \tDont warn about non-normal windows (blind mode)").local8Bit()); - qDebug(i18n("-d \tDisable session management").local8Bit()); - qDebug(i18n("-e \tEnable session management").local8Bit()); - qDebug(i18n("-f \tDock window that has the focus(active window)").local8Bit()); - qDebug(i18n("-h \tDisplay this help").local8Bit()); - qDebug(i18n("-i icon\tCustom dock Icon").local8Bit()); - qDebug(i18n("-l \tLaunch on startup").local8Bit()); - qDebug(i18n("-m \tKeep application window mapped (dont hide on dock)").local8Bit()); - qDebug(i18n("-o \tDock when obscured").local8Bit()); - qDebug(i18n("-p secs\tSet ballooning timeout (popup time)").local8Bit()); - qDebug(i18n("-q \tDisable ballooning title changes (quiet)").local8Bit()); - qDebug(i18n("-t \tRemove this application from the task bar").local8Bit()); - qDebug(i18n("-v \tDisplay version").local8Bit()); - qDebug(i18n("-w wid \tWindow id of the application to dock\n").local8Bit()); - - qDebug(i18n("NOTE: Use -d for all startup scripts.\n").local8Bit()); - - qDebug(i18n("Bugs and wishes to gramakri@uiuc.edu").local8Bit()); - qDebug(i18n("Project information at http://kdocker.sourceforge.net").local8Bit()); + if (optopt != 'h') qDebug("%s", i18n("kdocker: invalid option -- %1").arg(optopt).local8Bit().data()); + + qDebug("%s", i18n("Usage: KDocker [options] command\n").local8Bit().data()); + qDebug("%s", i18n("Docks any application into the system tray\n").local8Bit().data()); + qDebug("%s", i18n("command \tCommand to execute\n").local8Bit().data()); + qDebug("%s", i18n("Options").local8Bit().data()); + qDebug("%s", i18n("-a \tShow author information").local8Bit().data()); + qDebug("%s", i18n("-b \tDont warn about non-normal windows (blind mode)").local8Bit().data()); + qDebug("%s", i18n("-d \tDisable session management").local8Bit().data()); + qDebug("%s", i18n("-e \tEnable session management").local8Bit().data()); + qDebug("%s", i18n("-f \tDock window that has the focus(active window)").local8Bit().data()); + qDebug("%s", i18n("-h \tDisplay this help").local8Bit().data()); + qDebug("%s", i18n("-i icon\tCustom dock Icon").local8Bit().data()); + qDebug("%s", i18n("-l \tLaunch on startup").local8Bit().data()); + qDebug("%s", i18n("-m \tKeep application window mapped (dont hide on dock)").local8Bit().data()); + qDebug("%s", i18n("-o \tDock when obscured").local8Bit().data()); + qDebug("%s", i18n("-p secs\tSet ballooning timeout (popup time)").local8Bit().data()); + qDebug("%s", i18n("-q \tDisable ballooning title changes (quiet)").local8Bit().data()); + qDebug("%s", i18n("-t \tRemove this application from the task bar").local8Bit().data()); + qDebug("%s", i18n("-v \tDisplay version").local8Bit().data()); + qDebug("%s", i18n("-w wid \tWindow id of the application to dock\n").local8Bit().data()); + + qDebug("%s", i18n("NOTE: Use -d for all startup scripts.\n").local8Bit().data()); + + qDebug("%s", i18n("Bugs and wishes to gramakri@uiuc.edu").local8Bit().data()); + qDebug("%s", i18n("Project information at http://kdocker.sourceforge.net").local8Bit().data()); } void KDocker::notifyPreviousInstance(Window prevInstance) -- cgit v1.2.1