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

src/docclipbase.cpp
src/docclipbase.h
src/kdenlivedoc.cpp
src/kdenlivedoc.h

index 39f79c7e835b2ac2b88cc2dad285d1d5912f01d9..81c55ad25552aa8d2104e24b2967b83f60020706 100644 (file)
@@ -120,7 +120,7 @@ bool DocClipBase::audioThumbCreated() const {
     return m_audioThumbCreated;
 }
 
-const QString DocClipBase::name() const {
+const QString DocClipBase::name() const {
 
     return m_properties.value("name");
 }
index 01e972197931bd9497c4045126515d571b50986d..03bc49ed49f19bd13ef60a1421150022e19201f4 100644 (file)
@@ -59,7 +59,7 @@ Q_OBJECT public:
     virtual ~ DocClipBase();
 
     /** returns the name of this clip. */
-    const QString name() const;
+    const QString name() const;
 
     /** Returns the description of this clip. */
     const QString description() const;
index 539f87a7e0b446a443c2499463c8a3f442b1009c..03a1d3bdf73f208aeedd27cc30155db1236cb24f 100644 (file)
@@ -1465,7 +1465,7 @@ void KdenliveDoc::slotAddClipFile(const KUrl url, const QString group, const QSt
     setModified(true);
 }
 
-const QString&KdenliveDoc::getFreeClipId() {
+const QString KdenliveDoc::getFreeClipId() {
     return QString::number(m_clipManager->getFreeClipId());
 }
 
index f474ab24153381422cfef4481850ed2a31b0de5f..69b615d065b1fd91a3a259364fef7d86726e0c5c 100644 (file)
@@ -83,7 +83,7 @@ Q_OBJECT public:
     const QString description() const;
     void setUrl(KUrl url);
     void setProfilePath(QString path);
-    const QString &getFreeClipId();
+    const QString getFreeClipId();
     /** does the document need saving */
     bool isModified() const;
     /** Returns project folder, used to store project files (titles, effects,...) */