diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-01-30 19:09:35 +0200 |
---|---|---|
committer | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2016-07-20 01:25:56 -0400 |
commit | da695330ee333d3210fd6ff236294684e27c5f82 (patch) | |
tree | 300b5da7ad08d4d94eea8b1b618a6f7e5969e7e4 /basic | |
parent | b41c9ce2aaaf7ef38071298c7427f6b0905a9bd9 (diff) |
unnecessary use of OUString constructor
Change-Id: Idd31b0a53c8318af69bbcd32f6798721ec8eb8e1
Reviewed-on: https://gerrit.libreoffice.org/21945
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
(cherry picked from commit 1ef9f3988ee4dcbc77e1fdefa20442e044a67d4d)
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/basmgr/basmgr.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx index e2ab5de63796..f4093d3d8c3d 100644 --- a/basic/source/basmgr/basmgr.cxx +++ b/basic/source/basmgr/basmgr.cxx @@ -1573,7 +1573,7 @@ namespace OUString sMacro; if(nLast >= 0) { - sMacro = OUString(sParse.getStr() + nLast, sParse.getLength() - nLast ); + sMacro = sParse.copy(nLast); } else { @@ -2010,7 +2010,7 @@ uno::Sequence< OUString > DialogContainer_Impl::getElementNames() SbxVariable* pVar = mpLib->GetObjects()->Get( nObj ); if ( nullptr != dynamic_cast<const SbxObject*>( pVar) && ( static_cast<SbxObject*>(pVar)->GetSbxId() == SBXID_DIALOG ) ) { - pRetSeq[ nDialogCounter ] = OUString( pVar->GetName() ); + pRetSeq[ nDialogCounter ] = pVar->GetName(); nDialogCounter++; } } @@ -2174,7 +2174,7 @@ uno::Sequence< OUString > LibraryContainer_Impl::getElementNames() OUString* pRetSeq = aRetSeq.getArray(); for( sal_uInt16 i = 0 ; i < nLibs ; i++ ) { - pRetSeq[i] = OUString( mpMgr->GetLibName( i ) ); + pRetSeq[i] = mpMgr->GetLibName( i ); } return aRetSeq; } |