]> git.sesse.net Git - kdenlive/commitdiff
Const'ref. comment unused variable
authorMontel Laurent <montel@kde.org>
Sat, 1 Jun 2013 14:08:46 +0000 (16:08 +0200)
committerMontel Laurent <montel@kde.org>
Sat, 1 Jun 2013 14:08:46 +0000 (16:08 +0200)
src/kdenlivedoc.cpp
src/kdenlivedoc.h
src/profilesdialog.cpp

index 05851246b7c8a1ecd03aed86d7094490d8ed6b90..9a6e1b29a40d9051fbaa6969cada1621e1475e89 100644 (file)
@@ -443,7 +443,7 @@ QDomDocument KdenliveDoc::createEmptyDocument(int videotracks, int audiotracks)
     return createEmptyDocument(m_tracksList);
 }
 
-QDomDocument KdenliveDoc::createEmptyDocument(QList <TrackInfo> tracks)
+QDomDocument KdenliveDoc::createEmptyDocument(const QList <TrackInfo> &tracks)
 {
     // Creating new document
     QDomDocument doc;
@@ -500,7 +500,7 @@ QDomDocument KdenliveDoc::createEmptyDocument(QList <TrackInfo> tracks)
 
     QDomElement tractor = doc.createElement("tractor");
     tractor.setAttribute("id", "maintractor");
-    QDomElement multitrack = doc.createElement("multitrack");
+    //QDomElement multitrack = doc.createElement("multitrack");
     QDomElement playlist = doc.createElement("playlist");
     playlist.setAttribute("id", "black_track");
     mlt.appendChild(playlist);
index 610d4a90b85a8c7a5fe7fd87095cd5bd38a7ed1d..f83e608da90ae3d8adfb6af9fe689c60e141691a 100644 (file)
@@ -201,7 +201,7 @@ private:
 
     /** @brief Creates a new project. */
     QDomDocument createEmptyDocument(int videotracks, int audiotracks);
-    QDomDocument createEmptyDocument(QList <TrackInfo> tracks);
+    QDomDocument createEmptyDocument(const QList<TrackInfo> &tracks);
     /** @brief Saves effects embedded in project file.
     *   @return True if effects were imported.  */
     bool saveCustomEffects(const QDomNodeList &customeffects);
index 8c5c668d344b5e8bb209126372793da5f01caeb2..8fc0b01882fb37d045bb317d681dd76a5dea6fe7 100644 (file)
@@ -571,7 +571,8 @@ void ProfilesDialog::slotUpdateDisplay(QString currentProfile)
     }
     QLocale locale;
     m_selectedProfileIndex = m_view.profiles_list->currentIndex();
-    if (currentProfile.isEmpty()) currentProfile = m_view.profiles_list->itemData(m_view.profiles_list->currentIndex()).toString();
+    if (currentProfile.isEmpty())
+        currentProfile = m_view.profiles_list->itemData(m_view.profiles_list->currentIndex()).toString();
     m_isCustomProfile = currentProfile.contains('/');
     m_view.button_create->setEnabled(true);
     m_view.button_delete->setEnabled(m_isCustomProfile);