From: Montel Laurent Date: Sat, 1 Jun 2013 14:08:46 +0000 (+0200) Subject: Const'ref. comment unused variable X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=07c0f30adea324a848d8c09ce9fe409819855dd7;p=kdenlive Const'ref. comment unused variable --- diff --git a/src/kdenlivedoc.cpp b/src/kdenlivedoc.cpp index 05851246..9a6e1b29 100644 --- a/src/kdenlivedoc.cpp +++ b/src/kdenlivedoc.cpp @@ -443,7 +443,7 @@ QDomDocument KdenliveDoc::createEmptyDocument(int videotracks, int audiotracks) return createEmptyDocument(m_tracksList); } -QDomDocument KdenliveDoc::createEmptyDocument(QList tracks) +QDomDocument KdenliveDoc::createEmptyDocument(const QList &tracks) { // Creating new document QDomDocument doc; @@ -500,7 +500,7 @@ QDomDocument KdenliveDoc::createEmptyDocument(QList 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); diff --git a/src/kdenlivedoc.h b/src/kdenlivedoc.h index 610d4a90..f83e608d 100644 --- a/src/kdenlivedoc.h +++ b/src/kdenlivedoc.h @@ -201,7 +201,7 @@ private: /** @brief Creates a new project. */ QDomDocument createEmptyDocument(int videotracks, int audiotracks); - QDomDocument createEmptyDocument(QList tracks); + QDomDocument createEmptyDocument(const QList &tracks); /** @brief Saves effects embedded in project file. * @return True if effects were imported. */ bool saveCustomEffects(const QDomNodeList &customeffects); diff --git a/src/profilesdialog.cpp b/src/profilesdialog.cpp index 8c5c668d..8fc0b018 100644 --- a/src/profilesdialog.cpp +++ b/src/profilesdialog.cpp @@ -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);