From bc539bd3c04964471af6b5ca54264215c8995696 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 28 Oct 2019 10:35:49 +0200 Subject: loplugin:stringadd improve detection if one side of the expression is a compile-time-constant, we don't need to worry about side-effects on the other side Change-Id: Iee71ea51b327ef244bf39f128f921ac325d74e2b Reviewed-on: https://gerrit.libreoffice.org/81589 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cppu/source/uno/EnvStack.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cppu') diff --git a/cppu/source/uno/EnvStack.cxx b/cppu/source/uno/EnvStack.cxx index 748557e8b98a..71c87bec7c37 100644 --- a/cppu/source/uno/EnvStack.cxx +++ b/cppu/source/uno/EnvStack.cxx @@ -366,8 +366,7 @@ int SAL_CALL uno_Environment_isValid(uno_Environment * pEnv, rtl_uString ** pRea } else { - OUString envDcp(UNO_LB_UNO); - envDcp += cppu::EnvDcp::getPurpose(pEnv->pTypeName); + OUString envDcp = UNO_LB_UNO + cppu::EnvDcp::getPurpose(pEnv->pTypeName); uno::Environment env(envDcp); -- cgit