diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-01-26 01:15:02 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-01-27 11:22:32 +0100 |
commit | f7eae57c6511a95ee28cc8a8739f05f67e4f2395 (patch) | |
tree | 60234964ab0ac4b58ac760305fbbf69d8e8febd0 /sw | |
parent | 8139663ffa6fd53ee7dbe030c1a280c768b93299 (diff) |
Reduce OUString temporaries
Change-Id: I13777809dbee314e5b0002f8da9d5009c7fc3c5b
Reviewed-on: https://gerrit.libreoffice.org/66946
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/uno/unoatxt.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/uno/unoatxt.cxx b/sw/source/uibase/uno/unoatxt.cxx index 5433dda095a0..ad6b68a6cfd5 100644 --- a/sw/source/uibase/uno/unoatxt.cxx +++ b/sw/source/uibase/uno/unoatxt.cxx @@ -129,8 +129,7 @@ uno::Sequence< OUString > SwXAutoTextContainer::getElementNames() for ( size_t i = 0; i < nCount; ++i ) { // The names will be passed without a path extension. - OUString sGroupName(pGlossaries->GetGroupName(i)); - pArr[i] = sGroupName.getToken(0, GLOS_DELIM); + pArr[i] = pGlossaries->GetGroupName(i).getToken(0, GLOS_DELIM); } return aGroupNames; } |