Found by cppcheck.
---
 src/titlewidget.cpp |    2 +-
 src/titlewidget.h   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/titlewidget.cpp b/src/titlewidget.cpp
index 8ba4eb4..53b7516 100644
--- a/src/titlewidget.cpp
+++ b/src/titlewidget.cpp
@@ -2399,7 +2399,7 @@ void TitleWidget::slotSelectNone()
     selectionChanged();
 }
 
-QString TitleWidget::getTooltipWithShortcut(const QString text, QAction 
*button)
+QString TitleWidget::getTooltipWithShortcut(const QString &text, QAction 
*button)
 {
     return text + "  <b>" + button->shortcut().toString() + "</b>";
 }
diff --git a/src/titlewidget.h b/src/titlewidget.h
index 0d9a65d..a589269 100644
--- a/src/titlewidget.h
+++ b/src/titlewidget.h
@@ -224,7 +224,7 @@ private:
     void selectItems(int itemType);
 
     /** @brief Appends the shortcut of a QAction to a tooltip text */
-    QString getTooltipWithShortcut(const QString text, QAction *button);
+    QString getTooltipWithShortcut(const QString& text, QAction *button);
 
 public slots:
     void slotNewText(QGraphicsTextItem *tt);
-- 
1.7.5.4


------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Kdenlive-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kdenlive-devel

Reply via email to