summaryrefslogtreecommitdiff
path: root/filter/source/msfilter/msvbahelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'filter/source/msfilter/msvbahelper.cxx')
-rw-r--r--filter/source/msfilter/msvbahelper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/msfilter/msvbahelper.cxx b/filter/source/msfilter/msvbahelper.cxx
index e5c72e59e000..8422d62fe79f 100644
--- a/filter/source/msfilter/msvbahelper.cxx
+++ b/filter/source/msfilter/msvbahelper.cxx
@@ -317,7 +317,7 @@ MacroResolvedInfo resolveVBAMacro( SfxObjectShell* pShell, const OUString& Macro
{
SvtPathOptions aPathOpt;
OUString aAddinPath = aPathOpt.GetAddinPath();
- if( OUString( sDocUrlOrPath ).indexOf( aAddinPath ) == 0 )
+ if( sDocUrlOrPath.startsWith( aAddinPath ) )
pFoundShell = pShell;
}
if( !pFoundShell )
@@ -751,7 +751,7 @@ void applyShortCutKeyBinding ( const uno::Reference< frame::XModel >& rxModel, c
if ( !MacroName.isEmpty() )
{
OUString aMacroName = MacroName.trim();
- if (0 == aMacroName.indexOf('!'))
+ if( aMacroName.startsWith("!") )
MacroName = aMacroName.copy(1).trim();
SfxObjectShell* pShell = NULL;
if ( rxModel.is() )