From 6427b84b39d2f31f93615f9499c4a3d683e46a4d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 30 Aug 2016 15:30:12 +0200 Subject: [PATCH] loplugin:stringconstant: adapt to improved OUStringLiteral1 (writerfilter) Change-Id: Ia156b152a5df279d879e91cc0311c2f4da27cd05 --- writerfilter/source/dmapper/DomainMapper_Impl.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx index 256e690716bf..cb2e28d19a67 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx @@ -2372,8 +2372,7 @@ bool lcl_FindInCommand( OUString& rValue ) { bool bRet = false; - OUString sSearch('\\'); - sSearch += OUString( cSwitch ); + OUString sSearch = "\\" + OUStringLiteral1( cSwitch ); sal_Int32 nIndex = rCommand.indexOf( sSearch ); if( nIndex >= 0 ) {