Kaydet (Commit) dfc5acab authored tarafından Matteo Casalin's avatar Matteo Casalin

Avoid indexed getToken for single call

Change-Id: I3e8e413d2a1e7a0b95e972246d86182156118488
Reviewed-on: https://gerrit.libreoffice.org/65674
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst da096e3b
...@@ -258,8 +258,7 @@ OUString AboutDialog::GetBuildId() ...@@ -258,8 +258,7 @@ OUString AboutDialog::GetBuildId()
if (!sBuildId.isEmpty()) if (!sBuildId.isEmpty())
{ {
sal_Int32 nIndex = 0; return sBuildId.getToken( 0, '-' );
return sBuildId.getToken( 0, '-', nIndex );
} }
OSL_ENSURE( !sBuildId.isEmpty(), "No BUILDID in bootstrap file" ); OSL_ENSURE( !sBuildId.isEmpty(), "No BUILDID in bootstrap file" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment