[Libreoffice-commits] core.git: desktop/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sun Jan 13 09:58:51 UTC 2019
desktop/source/deployment/misc/dp_descriptioninfoset.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 604985f83c9cf2d4e6443478a5122a6f9c471c11
Author: Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sat Dec 29 23:21:47 2018 +0100
Commit: Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Sun Jan 13 10:58:32 2019 +0100
Reduce OUString operations
Change-Id: I11f9205e82dff9df5b235860df1b36d266d17334
Reviewed-on: https://gerrit.libreoffice.org/66221
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin at yahoo.com>
diff --git a/desktop/source/deployment/misc/dp_descriptioninfoset.cxx b/desktop/source/deployment/misc/dp_descriptioninfoset.cxx
index 9acb846ae32e..55b73c2d0b26 100644
--- a/desktop/source/deployment/misc/dp_descriptioninfoset.cxx
+++ b/desktop/source/deployment/misc/dp_descriptioninfoset.cxx
@@ -473,8 +473,7 @@ css::uno::Sequence< OUString > DescriptionInfoset::getSupportedPlatforms() const
sal_Int32 nIndex = 0;
do
{
- OUString aToken = value.getToken( 0, ',', nIndex );
- aToken = aToken.trim();
+ const OUString aToken = value.getToken( 0, ',', nIndex ).trim();
if (!aToken.isEmpty())
vec.push_back(aToken);
More information about the Libreoffice-commits
mailing list