From 5b6ed0abb8279a0b2858dad60435cb2494887014 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 11 Apr 2023 16:09:27 +0200 Subject: [PATCH] loplugin:stringadd Change-Id: I8437b896feb54b3162fd846861d6de0879ed2690 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150233 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- shell/source/backends/localebe/localebackend.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shell/source/backends/localebe/localebackend.cxx b/shell/source/backends/localebe/localebackend.cxx index 558926d8febd..9f1d22fef93e 100644 --- a/shell/source/backends/localebe/localebackend.cxx +++ b/shell/source/backends/localebe/localebackend.cxx @@ -123,8 +123,7 @@ namespace /* private */ CFStringRef sref = ImplGetAppPreference(pref); CFStringGuard srefGuard(sref); - OUStringBuffer aLocaleBuffer; - aLocaleBuffer.append("en-US"); // initialize with fallback value + OUStringBuffer aLocaleBuffer("en-US"); // initialize with fallback value if (sref != nullptr) {