[cpputools] Remove an useless OUString and use string_view instead
Change-Id: I3276a5110d054df56a0fb4d364f3c26ceb395835 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210640 Tested-by: Jenkins Reviewed-by: Arnaud Versini <arnaud.versini@pm.me>
This commit is contained in:
committed by
Arnaud Versini
parent
6f9ed4eecb
commit
96b8567314
@@ -89,7 +89,7 @@ const char arUsingText[] =
|
|||||||
static bool readOption( OUString * pValue, const char * pOpt,
|
static bool readOption( OUString * pValue, const char * pOpt,
|
||||||
sal_uInt32 * pnIndex, const OUString & aArg)
|
sal_uInt32 * pnIndex, const OUString & aArg)
|
||||||
{
|
{
|
||||||
static constexpr OUString dash(u"-"_ustr);
|
static constexpr std::u16string_view dash(u"-");
|
||||||
if(!aArg.startsWith(dash))
|
if(!aArg.startsWith(dash))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user