summaryrefslogtreecommitdiff
path: root/unodevtools
diff options
context:
space:
mode:
Diffstat (limited to 'unodevtools')
-rw-r--r--unodevtools/source/unodevtools/options.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/unodevtools/source/unodevtools/options.cxx b/unodevtools/source/unodevtools/options.cxx
index ec0264635a2b..1697d71a66fc 100644
--- a/unodevtools/source/unodevtools/options.cxx
+++ b/unodevtools/source/unodevtools/options.cxx
@@ -93,8 +93,8 @@ sal_Bool readOption( sal_Bool * pbOpt, const sal_Char * pOpt,
const OUString dash("-");
OUString aOpt = OUString::createFromAscii(pOpt);
- if((aArg.indexOf(dash) == 0 && aOpt.equalsIgnoreAsciiCase(aArg.copy(1))) ||
- (aArg.indexOf(dashdash) == 0 && aOpt.equalsIgnoreAsciiCase(aArg.copy(2))) )
+ if((aArg.startsWith(dash) && aOpt.equalsIgnoreAsciiCase(aArg.copy(1))) ||
+ (aArg.startsWith(dashdash) && aOpt.equalsIgnoreAsciiCase(aArg.copy(2))) )
{
++(*pnIndex);
*pbOpt = sal_True;