summaryrefslogtreecommitdiffstats
path: root/svx
diff options
context:
space:
mode:
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/pfiledlg.cxx4
-rw-r--r--svx/source/gallery2/galini.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/dialog/pfiledlg.cxx b/svx/source/dialog/pfiledlg.cxx
index 213808126d0b..62f3db4bfbe7 100644
--- a/svx/source/dialog/pfiledlg.cxx
+++ b/svx/source/dialog/pfiledlg.cxx
@@ -90,8 +90,8 @@ SvxPluginFileDlg::SvxPluginFileDlg (Window *, sal_uInt16 nKind )
aStrPlugMIMEType = aStrPlugMIMEType.toAsciiLowerCase();
aStrPlugExtension = aStrPlugExtension.toAsciiLowerCase();
- if ( ( nKind == SID_INSERT_SOUND && aStrPlugMIMEType.indexOf( sAudio ) == 0 ) ||
- ( nKind == SID_INSERT_VIDEO && aStrPlugMIMEType.indexOf( sVideo ) == 0 ) )
+ if ( ( nKind == SID_INSERT_SOUND && aStrPlugMIMEType.startsWith( sAudio ) ) ||
+ ( nKind == SID_INSERT_VIDEO && aStrPlugMIMEType.startsWith( sVideo ) ) )
{
// extension already in the filterlist of the filedlg ?
bool bAlreadyExist = false;
diff --git a/svx/source/gallery2/galini.cxx b/svx/source/gallery2/galini.cxx
index 815653982dd1..45673fc11ad0 100644
--- a/svx/source/gallery2/galini.cxx
+++ b/svx/source/gallery2/galini.cxx
@@ -47,7 +47,7 @@ OUString GalleryThemeEntry::ReadStrFromIni(const OUString &aKeyName )
sal_Int32 n;
// comments
- if( aLine.indexOf( '#' ) == 0 )
+ if( aLine.startsWith( "#" ) )
continue;
// a[en_US] = Bob