[Kdenlive-devel] [PATCH kdenlive 26/27] const parameter as reference
Mikko Rapeli
mikko.rapeli at iki.fi
Sun Aug 28 10:25:06 UTC 2011
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
More information about the Kdenlive
mailing list