diff options
Diffstat (limited to 'unodevtools')
-rw-r--r-- | unodevtools/source/unodevtools/options.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/unodevtools/source/unodevtools/options.cxx b/unodevtools/source/unodevtools/options.cxx index a2fc5f349217..8e0e870b4040 100644 --- a/unodevtools/source/unodevtools/options.cxx +++ b/unodevtools/source/unodevtools/options.cxx @@ -88,12 +88,10 @@ bool readOption( OUString * pValue, const sal_Char * pOpt, bool readOption( sal_Bool * pbOpt, const sal_Char * pOpt, sal_uInt32 * pnIndex, const OUString & aArg) { - const OUString dashdash("--"); - const OUString dash("-"); OUString aOpt = OUString::createFromAscii(pOpt); - if((aArg.startsWith(dash) && aOpt.equalsIgnoreAsciiCase(aArg.copy(1))) || - (aArg.startsWith(dashdash) && aOpt.equalsIgnoreAsciiCase(aArg.copy(2))) ) + if((aArg.startsWith("-") && aOpt.equalsIgnoreAsciiCase(aArg.copy(1))) || + (aArg.startsWith("--") && aOpt.equalsIgnoreAsciiCase(aArg.copy(2))) ) { ++(*pnIndex); *pbOpt = sal_True; |