summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2012-07-14 18:00:06 +0200
committerMichael Meeks <michael.meeks@suse.com>2012-07-16 11:33:05 +0100
commitdf645a2bd8a9b5463c74f261268f0d2de7245ccc (patch)
tree25d5df125c50111828d1e1f62edd47b716c11489 /scripting
parent0dde6d4a2d14dcb09187d476c4fbb80b6e008315 (diff)
There is not need to allocate memory just for getting the 'indexOf'
a literal within a OUString. Change-Id: I01ca30c68228f81b3d313dfca5b975448f3c4fc7
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/provider/URIHelper.cxx2
-rw-r--r--scripting/source/runtimemgr/ScriptNameResolverImpl.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripting/source/provider/URIHelper.cxx b/scripting/source/provider/URIHelper.cxx
index d34f494192c2..7ef545fe6c2b 100644
--- a/scripting/source/provider/URIHelper.cxx
+++ b/scripting/source/provider/URIHelper.cxx
@@ -146,7 +146,7 @@ ScriptingFrameworkURIHelper::initBaseURI()
test = OUString("uno_packages");
uri = OUString(SHARE_UNO_PACKAGES_URI);
}
- else if (m_sLocation.indexOf(OUString(TDOC_SCHEME)) == 0)
+ else if (m_sLocation.indexOf(TDOC_SCHEME) == 0)
{
m_sBaseURI = m_sLocation.concat( SCRIPTS_PART );
m_sLocation = OUString(DOCUMENT );
diff --git a/scripting/source/runtimemgr/ScriptNameResolverImpl.cxx b/scripting/source/runtimemgr/ScriptNameResolverImpl.cxx
index b909d16357ea..5e7b571a0970 100644
--- a/scripting/source/runtimemgr/ScriptNameResolverImpl.cxx
+++ b/scripting/source/runtimemgr/ScriptNameResolverImpl.cxx
@@ -246,7 +246,7 @@ throw ( lang::IllegalArgumentException, script::CannotConvertException, RuntimeE
// b) an illegal location
// detect illegal location
- if ( scriptURI.indexOf( OUString("location=") ) != -1 )
+ if ( scriptURI.indexOf( "location=" ) != -1 )
{
OSL_TRACE(
"ScriptNameResolver::resolve, throwing IllegalArgException" );