summaryrefslogtreecommitdiff
path: root/sd/source/ui/unoidl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-08-29 20:44:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-08-30 11:39:01 +0100
commit74929bba736cc6cceed3c088e13f5952abb1bd2b (patch)
tree8a026d95bc586ca6a41686dee32dfa53b659b252 /sd/source/ui/unoidl
parentfc7e7b683112e9ccd23104f38d4acc3417e9d5b8 (diff)
Related: fdo#38838 remove UniString::ToUpperAscii
things got a little out of hand and I ended up converting quite a bit of calc to OUString Change-Id: I056326d37ffefa8c120cb2e564d166dd9f20f216
Diffstat (limited to 'sd/source/ui/unoidl')
-rw-r--r--sd/source/ui/unoidl/sddetect.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/unoidl/sddetect.cxx b/sd/source/ui/unoidl/sddetect.cxx
index ecf492f1a732..e3a93da6ea1a 100644
--- a/sd/source/ui/unoidl/sddetect.cxx
+++ b/sd/source/ui/unoidl/sddetect.cxx
@@ -361,12 +361,12 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
OUString aStreamName("PowerPoint Document");
if ( aStorage->IsStream( aStreamName ) && SvtModuleOptions().IsImpress() )
{
- String aFileName(aMedium.GetName());
- aFileName.ToUpperAscii();
+ OUString aFileName(aMedium.GetName());
+ aFileName = aFileName.toAsciiUpperCase();
- if( aFileName.SearchAscii( ".POT" ) != STRING_NOTFOUND )
+ if( aFileName.indexOf( ".POT" ) != -1 )
pFilter = SfxFilter::GetFilterByName( pFilterPowerPoint97Template );
- else if( aFileName.SearchAscii( ".PPS" ) != STRING_NOTFOUND )
+ else if( aFileName.indexOf( ".PPS" ) != -1 )
pFilter = SfxFilter::GetFilterByName( pFilterPowerPoint97AutoPlay );
else
pFilter = SfxFilter::GetFilterByName( pFilterPowerPoint97);