extensions: prefer passing OUString by reference

Change-Id: Ic411b2776d0c054d59bfdc847f67785c85c5cb9e
This commit is contained in:
Noel Grandin
2014-03-17 11:25:23 +02:00
parent 1d6fd96df7
commit b69dcab522
6 changed files with 12 additions and 12 deletions

View File

@@ -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);

View File

@@ -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

View File

@@ -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();

View File

@@ -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)
{
}

View File

@@ -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)

View File

@@ -191,7 +191,7 @@ namespace pcr
namespace
{
bool lcl_isLanguageDependentProperty( OUString aName )
bool lcl_isLanguageDependentProperty( const OUString& aName )
{
bool bRet = false;