diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-08-29 20:44:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-30 11:39:01 +0100 |
commit | 74929bba736cc6cceed3c088e13f5952abb1bd2b (patch) | |
tree | 8a026d95bc586ca6a41686dee32dfa53b659b252 /sd | |
parent | fc7e7b683112e9ccd23104f38d4acc3417e9d5b8 (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')
-rw-r--r-- | sd/source/ui/unoidl/sddetect.cxx | 8 |
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); |