]> git.sesse.net Git - kdenlive/blobdiff - src/customtrackview.h
const'ify/ref + minor optimization
[kdenlive] / src / customtrackview.h
index 0242a2119bf21f8f5e72d3badfddf155360581f2..3dff40620ad8147aec4af5bbb21c36b8c215385b 100644 (file)
@@ -204,7 +204,7 @@ public:
     * Check whether given track has a clip with audio in it. */
     bool hasAudio(int track) const;
 
-    int getFrameWidth();
+    int getFrameWidth() const;
     /** @brief Returns last requested seeking pos (or SEEK_INACTIVE if no seek). */
     int seekPosition() const;
 
@@ -276,7 +276,7 @@ public slots:
     /** @brief Rebuilds a group to fit again after children changed.
     * @param childTrack the track of one of the groups children
     * @param childPos The position of the same child */
-    void rebuildGroup(int childTrack, GenTime childPos);
+    void rebuildGroup(int childTrack, const GenTime &childPos);
     /** @brief Rebuilds a group to fit again after children changed.
     * @param group The group to rebuild */
     void rebuildGroup(AbstractGroupItem *group);