diff options
author | Noel Grandin <noel@peralex.com> | 2013-12-13 09:29:22 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-12-17 11:49:03 +0200 |
commit | 08fe82e59cbc598d2683d72877653316c1e41962 (patch) | |
tree | 5eeace3006ef2bfd58a5d97a000f336b8b06099c /dbaccess | |
parent | fc985c30048d410ab68a55af64f56df85547a6bf (diff) |
Remove unnecessary use of OUString constructor in + expressions
Convert code like
aFilename = OUString::number(nFilePostfixCount) + OUString(".bmp");
to
aFilename = OUString::number(nFilePostfixCount) + ".bmp";
Change-Id: I03f513ad1c8ec8846b2afbdc67ab12525ed07e50
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/app/AppController.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/app/AppControllerGen.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/app/AppDetailPageHelper.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/WCopyTable.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/querydesign/QueryDesignView.cxx | 8 |
5 files changed, 11 insertions, 11 deletions
diff --git a/dbaccess/source/ui/app/AppController.cxx b/dbaccess/source/ui/app/AppController.cxx index 7e705ae668aa..cbd9b18b1bae 100644 --- a/dbaccess/source/ui/app/AppController.cxx +++ b/dbaccess/source/ui/app/AppController.cxx @@ -1587,7 +1587,7 @@ void SAL_CALL OApplicationController::elementRemoved( const ContainerEvent& _rEv Reference<XContent> xContent(xContainer,UNO_QUERY); if ( xContent.is() ) { - sName = xContent->getIdentifier()->getContentIdentifier() + OUString("/") + sName; + sName = xContent->getIdentifier()->getContentIdentifier() + "/" + sName; } } break; @@ -1631,7 +1631,7 @@ void SAL_CALL OApplicationController::elementReplaced( const ContainerEvent& _rE Reference<XContent> xContent(xContainer,UNO_QUERY); if ( xContent.is() ) { - sName = xContent->getIdentifier()->getContentIdentifier() + OUString("/") + sName; + sName = xContent->getIdentifier()->getContentIdentifier() + "/" + sName; } } break; diff --git a/dbaccess/source/ui/app/AppControllerGen.cxx b/dbaccess/source/ui/app/AppControllerGen.cxx index 202071992a60..39c1594b2711 100644 --- a/dbaccess/source/ui/app/AppControllerGen.cxx +++ b/dbaccess/source/ui/app/AppControllerGen.cxx @@ -316,7 +316,7 @@ void SAL_CALL OApplicationController::propertyChange( const PropertyChangeEvent& { Reference<XContent> xContent(xChild->getParent(),UNO_QUERY); if ( xContent.is() ) - sOldName = xContent->getIdentifier()->getContentIdentifier() + OUString("/") + sOldName; + sOldName = xContent->getIdentifier()->getContentIdentifier() + "/" + sOldName; } getContainer()->elementReplaced( eType , sOldName, sNewName ); diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx index 1366981564de..012096da1471 100644 --- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx +++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx @@ -334,7 +334,7 @@ void OAppDetailPageHelper::getSelectionElementNames( ::std::vector< OUString>& _ SvTreeListEntry* pParent = rTree.GetParent(pEntry); while(pParent) { - sName = rTree.GetEntryText(pParent) + OUString("/") + sName; + sName = rTree.GetEntryText(pParent) + "/" + sName; pParent = rTree.GetParent(pParent); } _rNames.push_back(sName); @@ -472,7 +472,7 @@ OUString OAppDetailPageHelper::getQualifiedName( SvTreeListEntry* _pEntry ) cons SvTreeListEntry* pParent = rTree.GetParent(pEntry); while(pParent) { - sComposedName = rTree.GetEntryText(pParent) + OUString("/") + sComposedName; + sComposedName = rTree.GetEntryText(pParent) + "/" + sComposedName; pParent = rTree.GetParent(pParent); } } diff --git a/dbaccess/source/ui/misc/WCopyTable.cxx b/dbaccess/source/ui/misc/WCopyTable.cxx index d728f25b39d1..053fa5c63acd 100644 --- a/dbaccess/source/ui/misc/WCopyTable.cxx +++ b/dbaccess/source/ui/misc/WCopyTable.cxx @@ -162,9 +162,9 @@ void ObjectCopySource::copyFilterAndSortingTo( const Reference< XConnection >& _ try { - const OUString sSourceName = (::dbtools::composeTableNameForSelect(m_xConnection,m_xObject) + OUString(".")); + const OUString sSourceName = ::dbtools::composeTableNameForSelect(m_xConnection,m_xObject) + "."; const OUString sTargetName = ::dbtools::composeTableNameForSelect(_xConnection,_rxObject); - const OUString sTargetNameTemp = (sTargetName + OUString(".")); + const OUString sTargetNameTemp = sTargetName + "."; OUString sStatement = "SELECT * FROM " + sTargetName + " WHERE 0=1"; diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx index fcf8732a4cb2..d5e87567cea7 100644 --- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx +++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx @@ -1656,22 +1656,22 @@ namespace case SQL_NODE_LESS: // take the opposite as we change the order i--; - aCondition = aCondition + OUString(">"); + aCondition += ">"; break; case SQL_NODE_LESSEQ: // take the opposite as we change the order i--; - aCondition = aCondition + OUString(">="); + aCondition += ">="; break; case SQL_NODE_GREAT: // take the opposite as we change the order i--; - aCondition = aCondition + OUString("<"); + aCondition += "<"; break; case SQL_NODE_GREATEQ: // take the opposite as we change the order i--; - aCondition = aCondition + OUString("<="); + aCondition += "<="; break; default: break; |