From 2d9ce9191da681e4fd9f1d08933ca5117c56601b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 20 Mar 2013 13:02:46 +0100 Subject: Remove uses of rtl::OUString::compareToAscii(asciiStr, maxLength) ...which is a confusing overload with unexpectedly different semantics from the one-parameter form. In preparation of marking it as deprecated. Change-Id: I4f176995546ae583fc570d770647ffc315eecc75 --- sd/source/core/CustomAnimationPreset.cxx | 2 +- sd/source/core/TransitionPreset.cxx | 2 +- sd/source/filter/ppt/pptinanimations.cxx | 2 +- sd/source/ui/unoidl/unopage.cxx | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'sd') diff --git a/sd/source/core/CustomAnimationPreset.cxx b/sd/source/core/CustomAnimationPreset.cxx index 3cc45984e16e..9ac81d682214 100644 --- a/sd/source/core/CustomAnimationPreset.cxx +++ b/sd/source/core/CustomAnimationPreset.cxx @@ -326,7 +326,7 @@ void CustomAnimationPresets::importEffects() for( sal_Int32 i=0; iGetPageKind() != PK_NOTES) { // check if this is the default 'page1234' name - if(aName.compareToAscii( sEmptyPageName, sizeof( sEmptyPageName ) - 1 ) == 0) + if(aName.startsWith( sEmptyPageName )) { // ok, it maybe is, first get the number part after 'page' OUString aNumber( aName.copy( sizeof( sEmptyPageName ) - 1 ) ); -- cgit