summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/appopen.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/appl/appopen.cxx')
-rw-r--r--sfx2/source/appl/appopen.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sfx2/source/appl/appopen.cxx b/sfx2/source/appl/appopen.cxx
index b61c9594f30a..26a357081417 100644
--- a/sfx2/source/appl/appopen.cxx
+++ b/sfx2/source/appl/appopen.cxx
@@ -594,7 +594,7 @@ bool lcl_isFilterNativelySupported(const SfxFilter& rFilter)
return true;
OUString aName = rFilter.GetFilterName();
- if (aName.indexOf("MS Excel") == 0)
+ if (aName.startsWith("MS Excel"))
// We can handle all Excel variants natively.
return true;
@@ -622,8 +622,7 @@ void SfxApplication::OpenDocExec_Impl( SfxRequest& rReq )
}
else
{
- sal_Int32 nIndex = aCommand.indexOf("slot:");
- if ( nIndex == 0 )
+ if ( aCommand.startsWith("slot:") )
{
sal_uInt16 nSlotId = (sal_uInt16) aCommand.copy(5).toInt32();
if ( nSlotId == SID_OPENDOC )