X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fcustomtrackscene.cpp;h=44e1a9bffd6aa0c4bef5dd69157ee7e21e06dc86;hb=af0cdc3a2441996bb29f9c2d8b4ce0dd87a6fcb0;hp=ba243695662e66e75c014ea529fa097e65dfdfc6;hpb=95b05b03000cfd3b211d4f4c500c1e1883f86c55;p=kdenlive diff --git a/src/customtrackscene.cpp b/src/customtrackscene.cpp index ba243695..44e1a9bf 100644 --- a/src/customtrackscene.cpp +++ b/src/customtrackscene.cpp @@ -55,7 +55,7 @@ void CustomTrackScene::setSnapList(const QList & 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) {