From a394d67f374e1b253f288a58113a3cfc8d301743 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 13 Jul 2017 09:55:21 +0200 Subject: use more OUString::operator== comphelper..cui Change-Id: Ib5f3037249152be2b66acf347d1a0c236dc7adfa Reviewed-on: https://gerrit.libreoffice.org/39888 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cpputools/source/unoexe/unoexe.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpputools/source') diff --git a/cpputools/source/unoexe/unoexe.cxx b/cpputools/source/unoexe/unoexe.cxx index 855dea236836..3d9a18a31931 100644 --- a/cpputools/source/unoexe/unoexe.cxx +++ b/cpputools/source/unoexe/unoexe.cxx @@ -103,7 +103,7 @@ static bool readOption( OUString * pValue, const sal_Char * pOpt, ++(*pnIndex); rtl_getAppCommandArg(*pnIndex, &pValue->pData); - if (*pnIndex >= rtl_getAppCommandArgCount() || pValue->copy(1).equals(dash)) + if (*pnIndex >= rtl_getAppCommandArgCount() || pValue->copy(1) == dash) { throw RuntimeException( "incomplete option \"-" + aOpt + "\" given!" ); } @@ -130,7 +130,7 @@ static bool readOption( bool * pbOpt, const sal_Char * pOpt, { OUString aOpt = OUString::createFromAscii(pOpt); - if(aArg.startsWith("--") && aOpt.equals(aArg.copy(2))) + if(aArg.startsWith("--") && aOpt == aArg.copy(2)) { ++(*pnIndex); *pbOpt = true; -- cgit