]> git.sesse.net Git - kdenlive/blobdiff - src/parameterplotter.cpp
Const'ref
[kdenlive] / src / parameterplotter.cpp
index c60ed1d5a88b694e1812be57f86b1f0069becd51..5550ba658e60882db2d30869bb4cdef0fe2018dc 100644 (file)
@@ -77,11 +77,10 @@ void ParameterPlotter::setPointLists(const QDomElement& d, const QString& paramN
     int i = 0;
     while (!namenode.item(i).isNull() && namenode.item(i).toElement().attribute("name") != m_paramName)
         ++i;
-    if (namenode.count()) {
-
 
+    if (namenode.count()) {
         QDomElement pa = namenode.item(i).toElement();
-        QDomNode na = pa.firstChildElement("name");
+        //QDomNode na = pa.firstChildElement("name");
 
         m_parameterNameList << pa.attribute("namedesc").split(';');
         emit parameterList(m_parameterNameList);
@@ -150,9 +149,9 @@ void ParameterPlotter::createParametersNew()
     QString paramlist;
     QTextStream txtstr(&paramlist);
     QDomNode pa = namenode.item(0);
-    if (namenode.count() > 0) {
+    if (!namenode.isEmpty()) {
         for (int i = 0; i < plotobjs.count(); ++i) {
-            QList<KPlotPoint*> points = plotobjs[i]->points();
+            QList<KPlotPoint*> points = plotobjs.at(i)->points();
             foreach(const KPlotPoint *o, points) {
                 txtstr << (int)o->y() ;
                 break;//first no keyframes
@@ -301,3 +300,5 @@ bool ParameterPlotter::isNewPoints() const
 {
     return m_newPoints;
 }
+
+#include "parameterplotter.moc"