diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-17 11:25:23 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-17 13:30:53 +0200 |
commit | b69dcab522f04d914f5f2ded350032bc3840c312 (patch) | |
tree | 5c5b0dbce39b857c98003c577fb55370481be3e2 /extensions | |
parent | 1d6fd96df71265730550e68878a1d2856761a2f3 (diff) |
extensions: prefer passing OUString by reference
Change-Id: Ic411b2776d0c054d59bfdc847f67785c85c5cb9e
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/bibliography/datman.hxx | 2 | ||||
-rw-r--r-- | extensions/source/bibliography/general.cxx | 2 | ||||
-rw-r--r-- | extensions/source/bibliography/general.hxx | 2 | ||||
-rw-r--r-- | extensions/source/bibliography/toolbar.cxx | 8 | ||||
-rw-r--r-- | extensions/source/bibliography/toolbar.hxx | 8 | ||||
-rw-r--r-- | extensions/source/propctrlr/formcomponenthandler.cxx | 2 |
6 files changed, 12 insertions, 12 deletions
diff --git a/extensions/source/bibliography/datman.hxx b/extensions/source/bibliography/datman.hxx index 9d649caffa2c..015f2b7d0853 100644 --- a/extensions/source/bibliography/datman.hxx +++ b/extensions/source/bibliography/datman.hxx @@ -110,7 +110,7 @@ protected: void SetMeAsUidListener(); void RemoveMeAsUidListener(); - void UpdateAddressbookCursor(OUString aSourceName); + void UpdateAddressbookCursor(const OUString& aSourceName); ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > updateGridModel(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XForm > & xDbForm); diff --git a/extensions/source/bibliography/general.cxx b/extensions/source/bibliography/general.cxx index d4483b7e419a..be37d26cfdb4 100644 --- a/extensions/source/bibliography/general.cxx +++ b/extensions/source/bibliography/general.cxx @@ -432,7 +432,7 @@ void BibGeneralPage::CommitActiveControl() } void BibGeneralPage::AddControlWithError( const OUString& rColumnName, const ::Point& rPos, const ::Size& rSize, - OUString& rErrorString, OUString aColumnUIName, const OString& sHelpId, sal_uInt16 nIndexInFTArray ) + OUString& rErrorString, const OUString& aColumnUIName, const OString& sHelpId, sal_uInt16 nIndexInFTArray ) { // adds also the XControl and creates a map entry in nFT2CtrlMap[] for mapping between control and FT diff --git a/extensions/source/bibliography/general.hxx b/extensions/source/bibliography/general.hxx index ce6c099e1bcd..8062e1874d01 100644 --- a/extensions/source/bibliography/general.hxx +++ b/extensions/source/bibliography/general.hxx @@ -128,7 +128,7 @@ class BibGeneralPage: public BibGeneralPageBaseClass, public BibTabPage sal_Int16& rIndex ); void AddControlWithError( const OUString& rColumnName, const Point& rPos, - const Size& rSize, OUString& rErrorString, OUString aColumnUIName, + const Size& rSize, OUString& rErrorString, const OUString& aColumnUIName, const OString& sHelpId, sal_uInt16 nIndexInFTArray ); void AdjustScrollbars(); diff --git a/extensions/source/bibliography/toolbar.cxx b/extensions/source/bibliography/toolbar.cxx index 6117df51ab19..0e30a7a86c5f 100644 --- a/extensions/source/bibliography/toolbar.cxx +++ b/extensions/source/bibliography/toolbar.cxx @@ -46,7 +46,7 @@ using namespace ::com::sun::star::beans; // Konstanten ------------------------------------------------------------- -BibToolBarListener::BibToolBarListener(BibToolBar *pTB,OUString aStr,sal_uInt16 nId): +BibToolBarListener::BibToolBarListener(BibToolBar *pTB, const OUString& aStr, sal_uInt16 nId): nIndex(nId), aCommand(aStr), pToolBar(pTB) @@ -79,7 +79,7 @@ OUString BibToolBarListener::GetCommand() const return aCommand; } -BibTBListBoxListener::BibTBListBoxListener(BibToolBar *pTB,OUString aStr,sal_uInt16 nId): +BibTBListBoxListener::BibTBListBoxListener(BibToolBar *pTB, const OUString& aStr, sal_uInt16 nId): BibToolBarListener(pTB,aStr,nId) { } @@ -118,7 +118,7 @@ void BibTBListBoxListener::statusChanged(const ::com::sun::star::frame::FeatureS } }; -BibTBQueryMenuListener::BibTBQueryMenuListener(BibToolBar *pTB,OUString aStr,sal_uInt16 nId): +BibTBQueryMenuListener::BibTBQueryMenuListener(BibToolBar *pTB, const OUString& aStr, sal_uInt16 nId): BibToolBarListener(pTB,aStr,nId) { } @@ -155,7 +155,7 @@ void BibTBQueryMenuListener::statusChanged(const frame::FeatureStateEvent& rEvt) } }; -BibTBEditListener::BibTBEditListener(BibToolBar *pTB,OUString aStr,sal_uInt16 nId): +BibTBEditListener::BibTBEditListener(BibToolBar *pTB, const OUString& aStr, sal_uInt16 nId): BibToolBarListener(pTB,aStr,nId) { } diff --git a/extensions/source/bibliography/toolbar.hxx b/extensions/source/bibliography/toolbar.hxx index 7fbe16358f66..86da81ad918c 100644 --- a/extensions/source/bibliography/toolbar.hxx +++ b/extensions/source/bibliography/toolbar.hxx @@ -48,7 +48,7 @@ protected: public: - BibToolBarListener(BibToolBar *pTB,OUString aStr,sal_uInt16 nId); + BibToolBarListener(BibToolBar *pTB, const OUString& aStr, sal_uInt16 nId); ~BibToolBarListener(); OUString GetCommand() const; @@ -68,7 +68,7 @@ class BibTBListBoxListener: public BibToolBarListener { public: - BibTBListBoxListener(BibToolBar *pTB,OUString aStr,sal_uInt16 nId); + BibTBListBoxListener(BibToolBar *pTB, const OUString& aStr, sal_uInt16 nId); ~BibTBListBoxListener(); virtual void SAL_CALL statusChanged(const ::com::sun::star::frame::FeatureStateEvent& Event) @@ -80,7 +80,7 @@ class BibTBEditListener: public BibToolBarListener { public: - BibTBEditListener(BibToolBar *pTB,OUString aStr,sal_uInt16 nId); + BibTBEditListener(BibToolBar *pTB, const OUString& aStr, sal_uInt16 nId); ~BibTBEditListener(); virtual void SAL_CALL statusChanged(const ::com::sun::star::frame::FeatureStateEvent& Event) @@ -92,7 +92,7 @@ class BibTBQueryMenuListener: public BibToolBarListener { public: - BibTBQueryMenuListener(BibToolBar *pTB,OUString aStr,sal_uInt16 nId); + BibTBQueryMenuListener(BibToolBar *pTB, const OUString& aStr, sal_uInt16 nId); ~BibTBQueryMenuListener(); virtual void SAL_CALL statusChanged(const ::com::sun::star::frame::FeatureStateEvent& Event) diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index 79d0c1deaef9..feab5da784e2 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -191,7 +191,7 @@ namespace pcr namespace { - bool lcl_isLanguageDependentProperty( OUString aName ) + bool lcl_isLanguageDependentProperty( const OUString& aName ) { bool bRet = false; |