[Libreoffice-commits] core.git: sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Jan 27 10:24:55 UTC 2019


 sw/source/uibase/uno/unoatxt.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit f7eae57c6511a95ee28cc8a8739f05f67e4f2395
Author:     Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sat Jan 26 01:15:02 2019 +0100
Commit:     Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Sun Jan 27 11:22:32 2019 +0100

    Reduce OUString temporaries
    
    Change-Id: I13777809dbee314e5b0002f8da9d5009c7fc3c5b
    Reviewed-on: https://gerrit.libreoffice.org/66946
    Tested-by: Jenkins
    Reviewed-by: Matteo Casalin <matteo.casalin at yahoo.com>

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;
 }


More information about the Libreoffice-commits mailing list