]> git.sesse.net Git - kdenlive/blobdiff - src/parameterplotter.cpp
Fix indent. Const'ref. Optimization. Clean up code
[kdenlive] / src / parameterplotter.cpp
index f298bd79ca3084500332de9b93ae3bfe371ef496..c7ebc8c0b7ba18cccc281db07a241750edf853dc 100644 (file)
@@ -150,9 +150,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