summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-10-25 11:34:13 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-10-25 12:26:22 +0200
commitbe3ac27bc83e4b27f55446dde42c45e4d5cc788e (patch)
tree4cfb47b1a3c86621515fee98a9501649ee279b81 /cui
parent73d7335e46a48e684107e226a2dfa0a3e76575de (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/about.cxx4
1 files changed, 1 insertions, 3 deletions
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";