[Libreoffice-commits] core.git: include/unotools unotools/source

Stephan Bergmann sbergman at redhat.com
Thu May 12 12:35:52 UTC 2016


 include/unotools/tempfile.hxx          |    2 +-
 unotools/source/ucbhelper/tempfile.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f3e18ad14e41fcda64f835ac1beb187a218db3d7
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu May 12 14:35:02 2016 +0200

    loplugin:passstuffbyref
    
    Change-Id: Ifa990214aaf749d039043aa51d3301dc0f1f0e4f

diff --git a/include/unotools/tempfile.hxx b/include/unotools/tempfile.hxx
index 40c88083..4b8bff8 100644
--- a/include/unotools/tempfile.hxx
+++ b/include/unotools/tempfile.hxx
@@ -84,7 +84,7 @@ public:
                     Returns the URL of the tempfile object.
                     If you want to have the system path file name, use the GetFileName() method of this object
                     */
-    OUString        GetURL();
+    OUString const & GetURL();
 
                     /**
                     Returns the system path name of the tempfile in host notation
diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx
index a3b909cc..dcc4068 100644
--- a/unotools/source/ucbhelper/tempfile.cxx
+++ b/unotools/source/ucbhelper/tempfile.cxx
@@ -366,7 +366,7 @@ OUString TempFile::GetFileName() const
     return aTmp;
 }
 
-OUString TempFile::GetURL()
+OUString const & TempFile::GetURL()
 {
     assert(!aName.isEmpty() && "TempFile::GetURL failed: unit test is leaking temp files, add the ucpfile1 component!");
     return aName;


More information about the Libreoffice-commits mailing list