summaryrefslogtreecommitdiffstats
path: root/src/item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.cpp')
-rw-r--r--src/item.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/item.cpp b/src/item.cpp
index 1de9cf7..809dd99 100644
--- a/src/item.cpp
+++ b/src/item.cpp
@@ -24,7 +24,7 @@
#include "item.h"
-Item::Item(QString iconName, QString cmd, QString name, int minSize, int maxSize) {
+Item::Item(const QString& iconName, const QString& cmd, const QString& name, int minSize, int maxSize) {
iLoader = KGlobal::iconLoader();
command = cmd;
this->name = name;
@@ -57,7 +57,7 @@ Item::Item(QString iconName, QString cmd, QString name, int minSize, int maxSize
}
-Item::Item(QString fileName, int minSize, int maxSize)
+Item::Item(const QString& fileName, int minSize, int maxSize)
{
QString line;
QFile in(fileName);
@@ -118,7 +118,7 @@ Item::Item(QString fileName, int minSize, int maxSize)
animed = FALSE;
}
-Item::Item(QPixmap iconBig, WId id, QString name, int minSize, int maxSize, bool wi)
+Item::Item(const QPixmap& iconBig, WId id, const QString& name, int minSize, int maxSize, bool wi)
{
setId(id);
this->name = name;
@@ -220,7 +220,7 @@ void Item::setId(WId newId)
id=newId;
}
-void Item::setIcon(QPixmap iconBig)
+void Item::setIcon(const QPixmap& iconBig)
{
icons.clear();
QImage icon(iconBig.convertToImage());
@@ -238,12 +238,12 @@ void Item::setIcon(QPixmap iconBig)
}
}
-void Item::setName(QString newName)
+void Item::setName(const QString& newName)
{
name = newName;
}
-void Item::setClass(QCString newClass)
+void Item::setClass(const QCString& newClass)
{
mClass = newClass;
}