diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-12-28 12:04:46 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-12-28 17:20:39 +0100 |
commit | 3f0303521e553051ceb871bb5bce957177aea0f4 (patch) | |
tree | 59b3fc1f90dedfaa9066744885c0b55d2d0463db /dbaccess/source | |
parent | 56e4ae786cfe9deec065a686c46a7eb457ce7049 (diff) |
Reduce OUString copying
Change-Id: I128a7d67fe23cc1a5806765fc710cc6cadc46a50
Reviewed-on: https://gerrit.libreoffice.org/65681
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'dbaccess/source')
-rw-r--r-- | dbaccess/source/ui/app/AppControllerGen.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/dbaccess/source/ui/app/AppControllerGen.cxx b/dbaccess/source/ui/app/AppControllerGen.cxx index 1512c77233c5..4d71e1f4fcfd 100644 --- a/dbaccess/source/ui/app/AppControllerGen.cxx +++ b/dbaccess/source/ui/app/AppControllerGen.cxx @@ -105,9 +105,7 @@ void OApplicationController::convertToView(const OUString& _sName) Reference< XDatabaseMetaData > xMeta = xConnection->getMetaData(); - OUString aName = DBA_RES(STR_TBL_TITLE); - aName = aName.getToken(0,' '); - OUString aDefaultName = ::dbaui::createDefaultName(xMeta,xTables,aName); + const OUString aDefaultName = ::dbaui::createDefaultName(xMeta, xTables, DBA_RES(STR_TBL_TITLE).getToken(0, ' ')); DynamicTableOrQueryNameCheck aNameChecker( xConnection, CommandType::TABLE ); ScopedVclPtrInstance< OSaveAsDlg > aDlg( getView(), CommandType::TABLE, getORB(), xConnection, aDefaultName, aNameChecker, SADFlags::NONE ); |