]> git.sesse.net Git - kdenlive/blobdiff - src/documentvalidator.h
fix coverity 1134134 1134135 (div by 0)
[kdenlive] / src / documentvalidator.h
index 5708f5fcae38ec466b7fbbe538aac399ec8620c1..fa9ab28826a7748e44d9ac6e1fb9cdd846d61183 100644 (file)
 #include <QDomDocument>
 #include <QColor>
 
-class QScriptValue;
+#include <KUrl>
 
+class QScriptValue;
 
 class DocumentValidator
 {
 
 public:
-    DocumentValidator(QDomDocument doc);
+    DocumentValidator(const QDomDocument &doc, const KUrl &documentUrl);
     bool isProject() const;
     bool validate(const double currentVersion);
     bool isModified() const;
 
 private:
     QDomDocument m_doc;
+    KUrl m_url;
     bool m_modified;
     bool upgrade(double version, const double currentVersion);
-    QStringList getInfoFromEffectName(const QString oldName);
+    QStringList getInfoFromEffectName(const QString &oldName);
     QString colorToString(const QColor& c);
     /** @brief Updates effects that were created using a different version of the underlaying filter than the one installed. */
     void updateEffects();
     /** @brief Updates the parameters according to the updateRules.
      * @see the related in README in effects/update */
-    bool updateEffectParameters(QDomNodeList parameters, const QScriptValue *updateRules, const double serviceVersion, const double effectVersion);
+    bool updateEffectParameters(const QDomNodeList &parameters, const QScriptValue *updateRules, const double serviceVersion, const double effectVersion);
 };
 
 #endif