summaryrefslogtreecommitdiffstats
path: root/src/kooldock.h
diff options
context:
space:
mode:
authorPascal Viandier <[email protected]>2015-10-01 18:01:36 +0200
committerSlávek Banko <[email protected]>2015-10-01 19:32:33 +0200
commit77649eee774e6f71da886d5c72a616a0b46e08fa (patch)
tree324dcd5623d54c64365aedaa8607ae691cfbddd5 /src/kooldock.h
parent01fd55b43a0d9420591544e6bea4fa171fe177b3 (diff)
downloadkooldock-77649eee774e6f71da886d5c72a616a0b46e08fa.tar.gz
kooldock-77649eee774e6f71da886d5c72a616a0b46e08fa.zip
Fix FTBFS with newer GCC
Signed-off-by: Pascal Viandier <[email protected]>
Diffstat (limited to 'src/kooldock.h')
-rw-r--r--src/kooldock.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/kooldock.h b/src/kooldock.h
index af196bd..a129a6f 100644
--- a/src/kooldock.h
+++ b/src/kooldock.h
@@ -69,8 +69,8 @@ class KoolDock : public QWidget
~KoolDock();
//static bool writeIgnoreList(QString text);
- void setMainPath(QString path);
- void setArgs(QString param);
+ void setMainPath(const QString& path);
+ void setArgs(const QString& param);
clip *clipw;
private:
@@ -251,7 +251,7 @@ class KoolDock : public QWidget
int animValue;
int animState;
- void run(QString cmd);
+ void run(const QString& cmd);
int func(int x);
int func2(int x);
void doUpdateGeometry();
@@ -267,7 +267,7 @@ class KoolDock : public QWidget
void addWindows();
int itemFromPoint(int x);
int xFromIndex(int i);
- void createMenu(WId id, KPopupMenu* tmpMenu, KWin::WindowInfo* info);
+ void createMenu(KPopupMenu* tmpMenu, KWin::WindowInfo* info);
void updTaskList();
void addToTaskList(WId id);
void rmFromTaskList(WId id);
@@ -329,8 +329,16 @@ class KoolDock : public QWidget
void toggleKeptBelowOthers();
void toggleFullScreen();
- static void addFile(QString filename, QString iconname, QString execname, QString name, bool notify, bool terminal, bool tclose, bool, QString);
- bool ignored(QString appname);
+ static void addFile(const QString& filename,
+ const QString& iconname,
+ const QString& execname,
+ const QString& name,
+ bool notify = true,
+ bool terminal = false,
+ bool tclose = false,
+ bool cuser = false,
+ QString = "na");
+ bool ignored(const QString& appname);
#ifdef _ENABLE_DEBUG
static void debug(QString message);