diff options
-rw-r--r-- | include/unotools/tempfile.hxx | 2 | ||||
-rw-r--r-- | unotools/source/ucbhelper/tempfile.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/unotools/tempfile.hxx b/include/unotools/tempfile.hxx index 40c880835a7e..4b8bff801edb 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 a3b909cc4f45..dcc4068b2ac3 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; |