[Libreoffice-commits] core.git: vcl/unx
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Jan 19 21:18:25 UTC 2019
vcl/unx/generic/app/geninst.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 6d70e04f66cbeb3aeeb1e9b69d5b201ae3d24747
Author: Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sat Jan 19 08:58:41 2019 +0100
Commit: Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Sat Jan 19 22:18:04 2019 +0100
Index is not needed for single getToken call
Change-Id: I98e90e817782dbd1776a053a9a0fd098a8d2be9d
Reviewed-on: https://gerrit.libreoffice.org/66641
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin at yahoo.com>
diff --git a/vcl/unx/generic/app/geninst.cxx b/vcl/unx/generic/app/geninst.cxx
index 52f2736c7014..dff6ff0ff379 100644
--- a/vcl/unx/generic/app/geninst.cxx
+++ b/vcl/unx/generic/app/geninst.cxx
@@ -65,9 +65,8 @@ OUString SalGenericInstance::getOSVersion()
if ( fgets ( aVerBuffer, 511, pVersion ) )
{
aKernelVer = OUString::createFromAscii( aVerBuffer );
- sal_Int32 nIndex = 0;
// "Linux version 3.16.7-29-desktop ..."
- OUString aVers = aKernelVer.getToken( 2, ' ', nIndex );
+ OUString aVers = aKernelVer.getToken( 2, ' ' );
// "3.16.7-29-desktop ..."
sal_Int32 nTooDetailed = aVers.indexOf( '.', 2);
if (nTooDetailed < 1 || nTooDetailed > 8)
More information about the Libreoffice-commits
mailing list