cui/source/dialogs/about.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit be3ac27bc83e4b27f55446dde42c45e4d5cc788e Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Tue Oct 25 11:34:13 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Tue Oct 25 12:26:22 2022 +0200 Simplify recently added code a bit Change-Id: If4e3eec9f3a32cc94ffe0f148704a949328b4e02 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141800 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index 150298ee1618..b3911bc61179 100644 --- a/cui/source/dialogs/about.cxx +++ b/cui/source/dialogs/about.cxx @@ -151,12 +151,10 @@ bool AboutDialog::IsStringValidGitHash(std::u16string_view hash) { } OUString AboutDialog::GetVersionString() { - OUString sVersion = CuiResId(TranslateId(nullptr, "%ABOUTBOXPRODUCTVERSION%ABOUTBOXPRODUCTVERSIONSUFFIX")); - OUString arch; auto const ok = rtl::Bootstrap::get("_ARCH", arch); assert(ok); (void) ok; - sVersion += " (" + arch + ")"; + OUString sVersion = CuiResId(TranslateId(nullptr, "%ABOUTBOXPRODUCTVERSION%ABOUTBOXPRODUCTVERSIONSUFFIX")) + " (" + arch + ")"; #if HAVE_FEATURE_COMMUNITY_FLAVOR sVersion += " / LibreOffice Community";