diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-01 18:24:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-02 08:01:49 +0200 |
commit | b1ca0e5ad728e1d4105c961b27c9256d86f867c1 (patch) | |
tree | ab0aa118d9bb6e2d68708db446b6fded004254be /vcl/source/control | |
parent | 9e5b43ff37683b7b67be96c2953e851498a310c9 (diff) |
loplugin:stringadd in vcl
Change-Id: I21154abe6992418ff2541e5913a0aae0c2c1912c
Reviewed-on: https://gerrit.libreoffice.org/79987
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/fmtfield.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/source/control/fmtfield.cxx b/vcl/source/control/fmtfield.cxx index cb4f0c68ca5f..7ae57b9f62b7 100644 --- a/vcl/source/control/fmtfield.cxx +++ b/vcl/source/control/fmtfield.cxx @@ -251,9 +251,7 @@ namespace validation return true; // normalize the string - OUString sNormalized( "_" ); - sNormalized += _rText; - sNormalized += "_"; + OUString sNormalized = "_" + _rText + "_"; return implValidateNormalized( sNormalized ); } |