diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-12-21 18:24:18 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-12-28 17:10:58 +0100 |
commit | dfc5acab04cb6b8bb5f88c21904c7b38665df530 (patch) | |
tree | 4eb3181fce4596b0ea79ef71d79eae29245a01c4 /cui | |
parent | da096e3b0ab93b43c5d33aeed0b90d7fb151f6dc (diff) |
Avoid indexed getToken for single call
Change-Id: I3e8e413d2a1e7a0b95e972246d86182156118488
Reviewed-on: https://gerrit.libreoffice.org/65674
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/about.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index 1f67ad12b6f4..0943c163b42e 100644 --- a/cui/source/dialogs/about.cxx +++ b/cui/source/dialogs/about.cxx @@ -258,8 +258,7 @@ OUString AboutDialog::GetBuildId() if (!sBuildId.isEmpty()) { - sal_Int32 nIndex = 0; - return sBuildId.getToken( 0, '-', nIndex ); + return sBuildId.getToken( 0, '-' ); } OSL_ENSURE( !sBuildId.isEmpty(), "No BUILDID in bootstrap file" ); |