]> git.sesse.net Git - kdenlive/blobdiff - src/customtrackscene.cpp
Save load splitter size
[kdenlive] / src / customtrackscene.cpp
index ba243695662e66e75c014ea529fa097e65dfdfc6..44e1a9bffd6aa0c4bef5dd69157ee7e21e06dc86 100644 (file)
@@ -55,7 +55,7 @@ void CustomTrackScene::setSnapList(const QList <GenTime>& snaps)
     m_snapPoints = snaps;
 }
 
-GenTime CustomTrackScene::previousSnapPoint(GenTime pos) const
+GenTime CustomTrackScene::previousSnapPoint(const GenTime &pos) const
 {
     for (int i = 0; i < m_snapPoints.size(); ++i) {
         if (m_snapPoints.at(i) >= pos) {
@@ -66,7 +66,7 @@ GenTime CustomTrackScene::previousSnapPoint(GenTime pos) const
     return GenTime();
 }
 
-GenTime CustomTrackScene::nextSnapPoint(GenTime pos) const
+GenTime CustomTrackScene::nextSnapPoint(const GenTime &pos) const
 {
     for (int i = 0; i < m_snapPoints.size(); ++i) {
         if (m_snapPoints.at(i) > pos) {