summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
Diffstat (limited to 'sd')
-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);