[Libreoffice-commits] core.git: vcl/unx
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sun Jan 27 10:45:14 UTC 2019
vcl/unx/generic/app/wmadaptor.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit dee9ad9fdca594993190e2f79ca4696f9adf6b48
Author: Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sat Jan 26 00:13:21 2019 +0100
Commit: Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Sun Jan 27 11:44:53 2019 +0100
Use indexed getToken
Change-Id: I104565b86874ed7cf99f85b9c784b3873e078ffa
Reviewed-on: https://gerrit.libreoffice.org/66937
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin at yahoo.com>
diff --git a/vcl/unx/generic/app/wmadaptor.cxx b/vcl/unx/generic/app/wmadaptor.cxx
index 0fda5b0866c0..8ebacc422016 100644
--- a/vcl/unx/generic/app/wmadaptor.cxx
+++ b/vcl/unx/generic/app/wmadaptor.cxx
@@ -821,8 +821,9 @@ bool WMAdaptor::getNetWmName()
)
{
OUString aMetaVersion( reinterpret_cast<char*>(pProperty), nItems, RTL_TEXTENCODING_UTF8 );
- nVersionMajor = aMetaVersion.getToken(0, '.').toInt32();
- nVersionMinor = aMetaVersion.getToken(1, '.').toInt32();
+ sal_Int32 nIdx {0};
+ nVersionMajor = aMetaVersion.getToken(0, '.', nIdx).toInt32();
+ nVersionMinor = aMetaVersion.getToken(0, '.', nIdx).toInt32();
}
if( pProperty )
{
More information about the Libreoffice-commits
mailing list