summaryrefslogtreecommitdiff
path: root/scripting/source/provider/URIHelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/source/provider/URIHelper.cxx')
-rw-r--r--scripting/source/provider/URIHelper.cxx26
1 files changed, 8 insertions, 18 deletions
diff --git a/scripting/source/provider/URIHelper.cxx b/scripting/source/provider/URIHelper.cxx
index 94d0e1fd041c..9247f4b9fa98 100644
--- a/scripting/source/provider/URIHelper.cxx
+++ b/scripting/source/provider/URIHelper.cxx
@@ -190,16 +190,13 @@ ScriptingFrameworkURIHelper::getLanguagePath(const OUString& rLanguagePart)
OUString SAL_CALL
ScriptingFrameworkURIHelper::getScriptURI(const OUString& rStorageURI)
{
- OUStringBuffer buf(120);
-
- buf.append("vnd.sun.star.script:");
- buf.append(getLanguagePart(rStorageURI));
- buf.append("?language=");
- buf.append(m_sLanguage);
- buf.append("&location=");
- buf.append(m_sLocation);
-
- return buf.makeStringAndClear();
+ return
+ "vnd.sun.star.script:" +
+ getLanguagePart(rStorageURI) +
+ "?language=" +
+ m_sLanguage +
+ "&location=" +
+ m_sLocation;
}
OUString SAL_CALL
@@ -219,14 +216,7 @@ ScriptingFrameworkURIHelper::getStorageURI(const OUString& rScriptURI)
uno::Reference< uno::XInterface >(), 1 );
}
- OUStringBuffer buf(120);
- buf.append(m_sBaseURI);
- buf.append("/");
- buf.append(getLanguagePath(sLanguagePart));
-
- OUString result = buf.makeStringAndClear();
-
- return result;
+ return m_sBaseURI + "/" + getLanguagePath(sLanguagePart);
}
OUString SAL_CALL