summaryrefslogtreecommitdiffstats
path: root/extensions
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 /extensions
parentfix 32bit build wrt. int vs. sal_Int32 comparison (diff)
downloadcore-df645a2bd8a9b5463c74f261268f0d2de7245ccc.tar.gz
core-df645a2bd8a9b5463c74f261268f0d2de7245ccc.zip
There is not need to allocate memory just for getting the 'indexOf'
a literal within a OUString. Change-Id: I01ca30c68228f81b3d313dfca5b975448f3c4fc7
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/propctrlr/usercontrol.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/source/propctrlr/usercontrol.cxx b/extensions/source/propctrlr/usercontrol.cxx
index 4eb64df3a4fd..a2684a2b6f5b 100644
--- a/extensions/source/propctrlr/usercontrol.cxx
+++ b/extensions/source/propctrlr/usercontrol.cxx
@@ -293,7 +293,7 @@ namespace pcr
::rtl::OUString sURL;
if ( ( _rValue >>= sURL ) )
{
- if ( sURL.indexOf( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "vnd.sun.star.GraphicObject:" ) ) ) == 0 )
+ if ( sURL.indexOf( "vnd.sun.star.GraphicObject:" ) == 0 )
getTypedControlWindow()->DisplayURL( getTypedControlWindow()->GetPlaceHolder() );
else
getTypedControlWindow()->DisplayURL( sURL );