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 --- formula/source/ui/dlg/funcutl.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'formula') diff --git a/formula/source/ui/dlg/funcutl.cxx b/formula/source/ui/dlg/funcutl.cxx index 0d8a8656afd4..b2d018befbd2 100644 --- a/formula/source/ui/dlg/funcutl.cxx +++ b/formula/source/ui/dlg/funcutl.cxx @@ -231,8 +231,7 @@ void ArgInput::Show() void ArgInput::UpdateAccessibleNames() { - OUString aArgName(":"); - aArgName += pFtArg->get_label(); + OUString aArgName = ":" + pFtArg->get_label(); OUString aName = pBtnFx->get_tooltip_text(); aName += aArgName; -- cgit v1.2.3