extensions: prefer passing OUString by reference
Change-Id: Ic411b2776d0c054d59bfdc847f67785c85c5cb9e
This commit is contained in:
@@ -110,7 +110,7 @@ protected:
|
|||||||
void SetMeAsUidListener();
|
void SetMeAsUidListener();
|
||||||
void RemoveMeAsUidListener();
|
void RemoveMeAsUidListener();
|
||||||
|
|
||||||
void UpdateAddressbookCursor(OUString aSourceName);
|
void UpdateAddressbookCursor(const OUString& aSourceName);
|
||||||
|
|
||||||
::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >
|
::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >
|
||||||
updateGridModel(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XForm > & xDbForm);
|
updateGridModel(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XForm > & xDbForm);
|
||||||
|
@@ -432,7 +432,7 @@ void BibGeneralPage::CommitActiveControl()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void BibGeneralPage::AddControlWithError( const OUString& rColumnName, const ::Point& rPos, const ::Size& rSize,
|
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
|
// adds also the XControl and creates a map entry in nFT2CtrlMap[] for mapping between control and FT
|
||||||
|
|
||||||
|
@@ -128,7 +128,7 @@ class BibGeneralPage: public BibGeneralPageBaseClass, public BibTabPage
|
|||||||
sal_Int16& rIndex );
|
sal_Int16& rIndex );
|
||||||
|
|
||||||
void AddControlWithError( const OUString& rColumnName, const Point& rPos,
|
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 );
|
const OString& sHelpId, sal_uInt16 nIndexInFTArray );
|
||||||
|
|
||||||
void AdjustScrollbars();
|
void AdjustScrollbars();
|
||||||
|
@@ -46,7 +46,7 @@ using namespace ::com::sun::star::beans;
|
|||||||
// Konstanten -------------------------------------------------------------
|
// Konstanten -------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
BibToolBarListener::BibToolBarListener(BibToolBar *pTB,OUString aStr,sal_uInt16 nId):
|
BibToolBarListener::BibToolBarListener(BibToolBar *pTB, const OUString& aStr, sal_uInt16 nId):
|
||||||
nIndex(nId),
|
nIndex(nId),
|
||||||
aCommand(aStr),
|
aCommand(aStr),
|
||||||
pToolBar(pTB)
|
pToolBar(pTB)
|
||||||
@@ -79,7 +79,7 @@ OUString BibToolBarListener::GetCommand() const
|
|||||||
return aCommand;
|
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)
|
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)
|
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)
|
BibToolBarListener(pTB,aStr,nId)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@@ -48,7 +48,7 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
BibToolBarListener(BibToolBar *pTB,OUString aStr,sal_uInt16 nId);
|
BibToolBarListener(BibToolBar *pTB, const OUString& aStr, sal_uInt16 nId);
|
||||||
~BibToolBarListener();
|
~BibToolBarListener();
|
||||||
|
|
||||||
OUString GetCommand() const;
|
OUString GetCommand() const;
|
||||||
@@ -68,7 +68,7 @@ class BibTBListBoxListener: public BibToolBarListener
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
BibTBListBoxListener(BibToolBar *pTB,OUString aStr,sal_uInt16 nId);
|
BibTBListBoxListener(BibToolBar *pTB, const OUString& aStr, sal_uInt16 nId);
|
||||||
~BibTBListBoxListener();
|
~BibTBListBoxListener();
|
||||||
|
|
||||||
virtual void SAL_CALL statusChanged(const ::com::sun::star::frame::FeatureStateEvent& Event)
|
virtual void SAL_CALL statusChanged(const ::com::sun::star::frame::FeatureStateEvent& Event)
|
||||||
@@ -80,7 +80,7 @@ class BibTBEditListener: public BibToolBarListener
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
BibTBEditListener(BibToolBar *pTB,OUString aStr,sal_uInt16 nId);
|
BibTBEditListener(BibToolBar *pTB, const OUString& aStr, sal_uInt16 nId);
|
||||||
~BibTBEditListener();
|
~BibTBEditListener();
|
||||||
|
|
||||||
virtual void SAL_CALL statusChanged(const ::com::sun::star::frame::FeatureStateEvent& Event)
|
virtual void SAL_CALL statusChanged(const ::com::sun::star::frame::FeatureStateEvent& Event)
|
||||||
@@ -92,7 +92,7 @@ class BibTBQueryMenuListener: public BibToolBarListener
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
BibTBQueryMenuListener(BibToolBar *pTB,OUString aStr,sal_uInt16 nId);
|
BibTBQueryMenuListener(BibToolBar *pTB, const OUString& aStr, sal_uInt16 nId);
|
||||||
~BibTBQueryMenuListener();
|
~BibTBQueryMenuListener();
|
||||||
|
|
||||||
virtual void SAL_CALL statusChanged(const ::com::sun::star::frame::FeatureStateEvent& Event)
|
virtual void SAL_CALL statusChanged(const ::com::sun::star::frame::FeatureStateEvent& Event)
|
||||||
|
@@ -191,7 +191,7 @@ namespace pcr
|
|||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
bool lcl_isLanguageDependentProperty( OUString aName )
|
bool lcl_isLanguageDependentProperty( const OUString& aName )
|
||||||
{
|
{
|
||||||
bool bRet = false;
|
bool bRet = false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user