From: Jean-Baptiste Mardelle Date: Tue, 2 Jun 2009 20:54:14 +0000 (+0000) Subject: Remove unused arguments (warnings --) X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=9c94de263f52fc5de385fafbbe277edc9ec3a9bf;p=kdenlive Remove unused arguments (warnings --) svn path=/trunk/kdenlive/; revision=3481 --- diff --git a/src/documentchecker.cpp b/src/documentchecker.cpp index f172d407..9bdf501e 100644 --- a/src/documentchecker.cpp +++ b/src/documentchecker.cpp @@ -48,7 +48,7 @@ const int CLIPMISSING = 0; const int CLIPOK = 1; const int CLIPPLACEHOLDER = 2; -DocumentChecker::DocumentChecker(QDomNodeList producers, QDomNodeList infoproducers, QList missingClips, QDomDocument doc, QWidget * parent) : +DocumentChecker::DocumentChecker(QList missingClips, QDomDocument doc, QWidget * parent) : QDialog(parent), m_doc(doc) { diff --git a/src/documentchecker.h b/src/documentchecker.h index e6341e3c..5742890a 100644 --- a/src/documentchecker.h +++ b/src/documentchecker.h @@ -34,7 +34,7 @@ class DocumentChecker : public QDialog Q_OBJECT public: - explicit DocumentChecker(QDomNodeList producers, QDomNodeList infoproducers, QList missingClips, QDomDocument doc, QWidget * parent = 0); + explicit DocumentChecker(QList missingClips, QDomDocument doc, QWidget * parent = 0); ~DocumentChecker(); private slots: diff --git a/src/kdenlivedoc.cpp b/src/kdenlivedoc.cpp index 13d1f4fa..e679789b 100644 --- a/src/kdenlivedoc.cpp +++ b/src/kdenlivedoc.cpp @@ -140,7 +140,7 @@ KdenliveDoc::KdenliveDoc(const KUrl &url, const KUrl &projectFolder, QUndoGroup } QDomNodeList producers = m_document.elementsByTagName("producer"); QDomNodeList infoproducers = m_document.elementsByTagName("kdenlive_producer"); - if (checkDocumentClips(producers, infoproducers) == false) m_abortLoading = true; + if (checkDocumentClips(infoproducers) == false) m_abortLoading = true; const int max = producers.count(); const int infomax = infoproducers.count(); @@ -1099,7 +1099,7 @@ QString KdenliveDoc::getLadspaFile() const return m_projectFolder.path() + "/ladspa/" + counter + ".ladspa"; } -bool KdenliveDoc::checkDocumentClips(QDomNodeList producers, QDomNodeList infoproducers) +bool KdenliveDoc::checkDocumentClips(QDomNodeList infoproducers) { int clipType; QDomElement e; @@ -1119,7 +1119,7 @@ bool KdenliveDoc::checkDocumentClips(QDomNodeList producers, QDomNodeList infopr } } if (missingClips.isEmpty()) return true; - DocumentChecker d(producers, infoproducers, missingClips, m_document); + DocumentChecker d(missingClips, m_document); return (d.exec() == QDialog::Accepted); } diff --git a/src/kdenlivedoc.h b/src/kdenlivedoc.h index 70f3180f..44733ef2 100644 --- a/src/kdenlivedoc.h +++ b/src/kdenlivedoc.h @@ -147,7 +147,7 @@ private: void setNewClipResource(const QString &id, const QString &path); QString searchFileRecursively(const QDir &dir, const QString &matchSize, const QString &matchHash) const; void moveProjectData(KUrl url); - bool checkDocumentClips(QDomNodeList producers, QDomNodeList infoproducers); + bool checkDocumentClips(QDomNodeList infoproducers); public slots: void slotCreateTextClip(QString group, const QString &groupId);