summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2012-08-06 10:40:32 +0200
committerMichael Meeks <michael.meeks@suse.com>2012-08-06 12:22:10 +0100
commitcf239da5c403164e75c369173fe6bed747de9e09 (patch)
tree38999901baaf3091692d7649c7804f224b661a99 /sd
parent515ceca5153d67ea602ab8c4fb339a7b42e9063e (diff)
There is not need to allocate memory just for getting the 'indexOf'
a literal within a OUString. Change-Id: Icc8e22c43f6ddca25cb284a3d45ab39680ad6d1f
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/stlsheet.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx
index 08fe4dc5b75d..e85e8ca78d52 100644
--- a/sd/source/core/stlsheet.cxx
+++ b/sd/source/core/stlsheet.cxx
@@ -1149,7 +1149,7 @@ Any SAL_CALL SdStyleSheet::getPropertyValue( const OUString& PropertyName ) thro
if( nFamily == SD_STYLE_FAMILY_MASTERPAGE )
{
const OUString aLayoutName( GetName() );
- aAny <<= aLayoutName.copy( 0, aLayoutName.indexOf(OUString( SD_LT_SEPARATOR) ) );
+ aAny <<= aLayoutName.copy( 0, aLayoutName.indexOf( SD_LT_SEPARATOR) );
}
else
{