diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-30 15:09:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-01 08:26:37 +0200 |
commit | 4f2465f599020b356dc37f3132049a103dd32486 (patch) | |
tree | fdf04c1660b4dc1ae4268c86575a0eae33412845 /dbaccess | |
parent | eaa2b432abcf31d11256e3dc01712c93367edf32 (diff) |
loplugin:stringadd in dbaccess..desktop
Change-Id: I79966c4b5947c87658980b26bea1e0c2898f3343
Reviewed-on: https://gerrit.libreoffice.org/79887
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/api/viewcontainer.cxx | 3 | ||||
-rw-r--r-- | dbaccess/source/ui/browser/unodatbr.cxx | 3 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/queryfilter.cxx | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/dbaccess/source/core/api/viewcontainer.cxx b/dbaccess/source/core/api/viewcontainer.cxx index 35a00e4c8f04..ea3b8bef81d6 100644 --- a/dbaccess/source/core/api/viewcontainer.cxx +++ b/dbaccess/source/core/api/viewcontainer.cxx @@ -180,8 +180,7 @@ void OViewContainer::dropObject(sal_Int32 _nPos, const OUString& _sElementName) if(sComposedName.isEmpty()) ::dbtools::throwFunctionSequenceException(static_cast<XTypeProvider*>(static_cast<OFilteredContainer*>(this))); - OUString aSql("DROP VIEW "); - aSql += sComposedName; + OUString aSql = "DROP VIEW " + sComposedName; Reference<XConnection> xCon = m_xConnection; OSL_ENSURE(xCon.is(),"Connection is null!"); if ( xCon.is() ) diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx index e11f3dbd5969..652c9e68b801 100644 --- a/dbaccess/source/ui/browser/unodatbr.cxx +++ b/dbaccess/source/ui/browser/unodatbr.cxx @@ -3605,8 +3605,7 @@ OUString SbaTableQueryBrowser::getPrivateTitle() const sTitle = aURL.getBase(INetURLObject::LAST_SEGMENT,true,INetURLObject::DecodeMechanism::WithCharset); if ( !sName.isEmpty() ) { - sName += " - "; - sName += sTitle; + sName += " - " + sTitle; sTitle = sName; } } diff --git a/dbaccess/source/ui/dlg/queryfilter.cxx b/dbaccess/source/ui/dlg/queryfilter.cxx index 3286ecf8c420..41c7ced4734d 100644 --- a/dbaccess/source/ui/dlg/queryfilter.cxx +++ b/dbaccess/source/ui/dlg/queryfilter.cxx @@ -325,8 +325,7 @@ bool DlgFilterCrit::getCondition(const weld::ComboBox& _rField,const weld::Combo _rFilter.Name = ::dbtools::quoteName(aQuote,_rFilter.Name); if ( !sTableName.isEmpty() ) { - sTableName += "."; - sTableName += _rFilter.Name; + sTableName += "." + _rFilter.Name; _rFilter.Name = sTableName; } } |