]> git.sesse.net Git - kdenlive/commitdiff
[PATCH by Ray Lehtiniemi] Do not return references to local variables
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 7 Mar 2009 17:46:05 +0000 (17:46 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 7 Mar 2009 17:46:05 +0000 (17:46 +0000)
svn path=/trunk/kdenlive/; revision=3104

src/docclipbase.cpp
src/docclipbase.h

index f82402adcb357c48d253bde52d63807b171249a1..39f79c7e835b2ac2b88cc2dad285d1d5912f01d9 100644 (file)
@@ -180,7 +180,7 @@ const GenTime &DocClipBase::duration() const {
     return m_duration;
 }
 
-const GenTime &DocClipBase::maxDuration() const {
+const GenTime DocClipBase::maxDuration() const {
     if (m_clipType == COLOR || m_clipType == IMAGE || m_clipType == TEXT || (m_clipType == SLIDESHOW &&  m_properties.value("loop") == "1")) {
         const GenTime dur(15000, KdenliveSettings::project_fps());
         return dur;
index a690377a998e76fd63636f39a6b6b14516fe8f72..01e972197931bd9497c4045126515d571b50986d 100644 (file)
@@ -81,7 +81,7 @@ Q_OBJECT public:
 
     /** returns the duration of this clip */
     const GenTime & duration() const;
-    const GenTime &maxDuration() const;
+    const GenTime maxDuration() const;
     /** returns the duration of this clip */
     void setDuration(GenTime dur);