From dd8d5e5795358d732a9f7a8af7c35f662321e332 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 29 Apr 2019 11:18:21 +0200 Subject: improve loplugin:stringconstant to find more places we can elide the OUString() constructor at call sites Change-Id: Ie09f3c61f2c4b4959c97dc98ebcbaf7c51d5d713 Reviewed-on: https://gerrit.libreoffice.org/71514 Tested-by: Jenkins Reviewed-by: Noel Grandin --- stoc/source/corereflection/crefl.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'stoc/source/corereflection/crefl.cxx') diff --git a/stoc/source/corereflection/crefl.cxx b/stoc/source/corereflection/crefl.cxx index a306a0d441c2..040080a3ba7c 100644 --- a/stoc/source/corereflection/crefl.cxx +++ b/stoc/source/corereflection/crefl.cxx @@ -318,9 +318,7 @@ const Mapping & IdlReflectionServiceImpl::getCpp2Uno() MutexGuard aGuard( getMutexAccess() ); if (! _aCpp2Uno.is()) { - _aCpp2Uno = Mapping( - OUString( CPPU_CURRENT_LANGUAGE_BINDING_NAME ), - OUString( UNO_LB_UNO ) ); + _aCpp2Uno = Mapping( CPPU_CURRENT_LANGUAGE_BINDING_NAME, UNO_LB_UNO ); OSL_ENSURE( _aCpp2Uno.is(), "### cannot get c++ to uno mapping!" ); if (! _aCpp2Uno.is()) { @@ -340,9 +338,7 @@ const Mapping & IdlReflectionServiceImpl::getUno2Cpp() MutexGuard aGuard( getMutexAccess() ); if (! _aUno2Cpp.is()) { - _aUno2Cpp = Mapping( - OUString( UNO_LB_UNO ), - OUString( CPPU_CURRENT_LANGUAGE_BINDING_NAME ) ); + _aUno2Cpp = Mapping( UNO_LB_UNO, CPPU_CURRENT_LANGUAGE_BINDING_NAME ); OSL_ENSURE( _aUno2Cpp.is(), "### cannot get uno to c++ mapping!" ); if (! _aUno2Cpp.is()) { -- cgit