Commit 07c0f30a authored by Laurent Montel's avatar Laurent Montel 😁

Const'ref. comment unused variable

parent f223c83a
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment