diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2012-07-14 18:00:06 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-07-16 11:33:05 +0100 |
commit | df645a2bd8a9b5463c74f261268f0d2de7245ccc (patch) | |
tree | 25d5df125c50111828d1e1f62edd47b716c11489 /extensions/source | |
parent | 0dde6d4a2d14dcb09187d476c4fbb80b6e008315 (diff) |
There is not need to allocate memory just for getting the 'indexOf'
a literal within a OUString.
Change-Id: I01ca30c68228f81b3d313dfca5b975448f3c4fc7
Diffstat (limited to 'extensions/source')
-rw-r--r-- | extensions/source/propctrlr/usercontrol.cxx | 2 |
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 ); |