summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-01-30 19:09:35 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-01-31 12:04:02 +0000
commit1ef9f3988ee4dcbc77e1fdefa20442e044a67d4d (patch)
tree686b5f3247d28e19ba949b81fd5596dbe3a27401 /basic
parent890ebf1cc6bb58ff21da19d7fd4b9b67eaa32a9c (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>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/basmgr/basmgr.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx
index c4aa170a5551..0103102704e8 100644
--- a/basic/source/basmgr/basmgr.cxx
+++ b/basic/source/basmgr/basmgr.cxx
@@ -1570,7 +1570,7 @@ namespace
OUString sMacro;
if(nLast >= 0)
{
- sMacro = OUString(sParse.getStr() + nLast, sParse.getLength() - nLast );
+ sMacro = sParse.copy(nLast);
}
else
{
@@ -2013,7 +2013,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++;
}
}
@@ -2180,7 +2180,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;
}