summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/tools/urlobj.hxx2
-rw-r--r--tools/source/fsys/urlobj.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/tools/urlobj.hxx b/include/tools/urlobj.hxx
index 96f21676d51b..33af8104dc0f 100644
--- a/include/tools/urlobj.hxx
+++ b/include/tools/urlobj.hxx
@@ -396,7 +396,7 @@ public:
@return The 'prefix' of URLs of the given scheme.
*/
- static OUString GetScheme(INetProtocol eTheScheme);
+ static const OUString & GetScheme(INetProtocol eTheScheme);
/** Return the human-readable name for a given scheme.
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx
index 34d761d11e66..5e200867a5cc 100644
--- a/tools/source/fsys/urlobj.cxx
+++ b/tools/source/fsys/urlobj.cxx
@@ -4006,7 +4006,7 @@ bool INetURLObject::isAnyKnownWebDAVScheme() const {
}
// static
-OUString INetURLObject::GetScheme(INetProtocol eTheScheme)
+const OUString & INetURLObject::GetScheme(INetProtocol eTheScheme)
{
return getSchemeInfo(eTheScheme).m_aPrefix;
}