]> git.sesse.net Git - kdenlive/commitdiff
Const'ify
authorMontel Laurent <montel@kde.org>
Mon, 20 May 2013 20:06:58 +0000 (22:06 +0200)
committerMontel Laurent <montel@kde.org>
Mon, 20 May 2013 20:06:58 +0000 (22:06 +0200)
src/abstractgroupitem.cpp
src/abstractgroupitem.h
src/archivewidget.cpp
src/archivewidget.h
src/choosecolorwidget.cpp
src/choosecolorwidget.h

index e52a8a336f3736ca40600cbf422c77129c86aa45..ba40dd719cacc4995089387688dc0f860ab5f86f 100644 (file)
@@ -92,17 +92,17 @@ CustomTrackScene* AbstractGroupItem::projectScene()
     return NULL;
 }
 
-QPainterPath AbstractGroupItem::clipGroupSpacerShape(QPointF offset) const
+QPainterPath AbstractGroupItem::clipGroupSpacerShape(const QPointF &offset) const
 {
     return spacerGroupShape(AVWIDGET, offset);
 }
 
-QPainterPath AbstractGroupItem::clipGroupShape(QPointF offset) const
+QPainterPath AbstractGroupItem::clipGroupShape(const QPointF &offset) const
 {
     return groupShape(AVWIDGET, offset);
 }
 
-QPainterPath AbstractGroupItem::transitionGroupShape(QPointF offset) const
+QPainterPath AbstractGroupItem::transitionGroupShape(const QPointF &offset) const
 {
     return groupShape(TRANSITIONWIDGET, offset);
 }
index e0103aa075f501df25c8e4a6e7429c2f432fc677..91792be7aca28620c99a48812d3454530a0cc4ef 100644 (file)
@@ -40,9 +40,9 @@ public:
     void addItem(QGraphicsItem * item);
     void removeItem(QGraphicsItem * item);
     int track() const;
-    QPainterPath clipGroupShape(QPointF offset) const;
-    QPainterPath clipGroupSpacerShape(QPointF offset) const;
-    QPainterPath transitionGroupShape(QPointF offset) const;
+    QPainterPath clipGroupShape(const QPointF &offset) const;
+    QPainterPath clipGroupSpacerShape(const QPointF &offset) const;
+    QPainterPath transitionGroupShape(const QPointF &offset) const;
     void setItemLocked(bool locked);
     bool isItemLocked() const;
     //    ItemInfo info() const;
index 597044aad74e1548baecdd011c230819a94b12df..a645172e5a9efe19f83a28dc7423d5a5f6d353c4 100644 (file)
@@ -903,7 +903,7 @@ void ArchiveWidget::doExtracting()
     emit extractingFinished();    
 }
 
-QString ArchiveWidget::extractedProjectFile()
+QString ArchiveWidget::extractedProjectFile() const
 {
     return archive_url->url().path(KUrl::AddTrailingSlash) + m_projectName;
 }
index 0f09084f1970c603ef42943e4cc395b36e3acdfa..de4c1f54ba51021452626f89befd36db604e013b 100644 (file)
@@ -58,7 +58,7 @@ public:
     explicit ArchiveWidget(const KUrl &url, QWidget * parent = 0);
     ~ArchiveWidget();
 
-    QString extractedProjectFile();
+    QString extractedProjectFile() const;
     
 private slots:
     void slotCheckSpace();
index bbf5c29fd6a1c9d78ec81bbcbe57e4f5d7855e45..0b11af05ba72eee07cb6373d2964c6069e190f22 100644 (file)
@@ -68,7 +68,7 @@ static QColor stringToColor(QString strColor)
     return color;
 }
 
-static QString colorToString(QColor color, bool alpha)
+static QString colorToString(const QColor &color, bool alpha)
 {
     QString colorStr;
     QTextStream stream(&colorStr);
index ad1788c0348873cfee8d40cf6aec44f88ace713d..dc04d22fe219e7d8d57ab3c3d3e8f0c4d29b527b 100644 (file)
@@ -21,7 +21,6 @@
 #ifndef CHOOSECOLORWIDGET_H
 #define CHOOSECOLORWIDGET_H
 
-#include <QtCore>
 #include <QWidget>
 
 class KColorButton;