summaryrefslogtreecommitdiff
path: root/svx/source/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-26 14:11:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-27 08:03:26 +0200
commit8ce64dbb3d7875c00963ae257d53f2b7b58fc4ad (patch)
tree070a1a2f11d553511c24423290829713c1f2fba6 /svx/source/inc
parent781a30e938c58c4d91d08f8c6f9e3f8745682d72 (diff)
loplugin:constparams in svx
and fix a bug in the plugin itself when calling operator's like the one on std::function<> Change-Id: I1617607107eeff06785c1841f69e13ad2926218e Reviewed-on: https://gerrit.libreoffice.org/40446 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/inc')
-rw-r--r--svx/source/inc/datanavi.hxx4
-rw-r--r--svx/source/inc/filtnav.hxx6
-rw-r--r--svx/source/inc/fmexch.hxx4
-rw-r--r--svx/source/inc/fmexpl.hxx28
-rw-r--r--svx/source/inc/fmvwimp.hxx6
-rw-r--r--svx/source/inc/gridcell.hxx6
-rw-r--r--svx/source/inc/tabwin.hxx2
7 files changed, 28 insertions, 28 deletions
diff --git a/svx/source/inc/datanavi.hxx b/svx/source/inc/datanavi.hxx
index 35d44db70725..06b8e7a5a486 100644
--- a/svx/source/inc/datanavi.hxx
+++ b/svx/source/inc/datanavi.hxx
@@ -134,7 +134,7 @@ namespace svxform
sal_uInt16 _nEditId,
sal_uInt16 _nRemoveId);
void DeleteAndClear();
- void RemoveEntry( SvTreeListEntry* _pEntry );
+ void RemoveEntry( SvTreeListEntry const * _pEntry );
};
class ReplaceString
@@ -334,7 +334,7 @@ namespace svxform
DECL_LINK( MenuActivateHdl, MenuButton *, void );
DECL_LINK( ActivatePageHdl, TabControl*, void);
DECL_LINK( UpdateHdl, Timer *, void);
- void ModelSelectHdl(ListBox*);
+ void ModelSelectHdl(ListBox const *);
XFormsPage* GetCurrentPage( sal_uInt16& rCurId );
void LoadModels();
void SetPageModel();
diff --git a/svx/source/inc/filtnav.hxx b/svx/source/inc/filtnav.hxx
index b22cb959a4f0..2e8b89007ad9 100644
--- a/svx/source/inc/filtnav.hxx
+++ b/svx/source/inc/filtnav.hxx
@@ -165,7 +165,7 @@ public:
void Update(const css::uno::Reference< css::container::XIndexAccess > & xControllers, const css::uno::Reference< css::form::runtime::XFormController > & xCurrent);
void Clear();
- bool ValidateText(FmFilterItem* pItem, OUString& rText, OUString& rErrorMsg) const;
+ bool ValidateText(FmFilterItem const * pItem, OUString& rText, OUString& rErrorMsg) const;
void Append(FmFilterItems* pItems, FmFilterItem* pFilterItem);
void SetTextForItem(FmFilterItem* pItem, const OUString& rText);
@@ -269,7 +269,7 @@ protected:
void DeleteSelection();
SvTreeListEntry* FindEntry(const FmFilterData* pItem) const;
void Insert(FmFilterData* pItem, sal_uLong nPos);
- void Remove(FmFilterData* pItem);
+ void Remove(FmFilterData const * pItem);
DECL_LINK(OnRemove, void*, void);
DECL_LINK(OnDropActionTimer, Timer*, void);
@@ -318,7 +318,7 @@ public:
virtual ~FmFilterNavigatorWin() override;
virtual void dispose() override;
- void UpdateContent( FmFormShell* pFormShell );
+ void UpdateContent( FmFormShell const * pFormShell );
void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) override;
void FillInfo( SfxChildWinInfo& rInfo ) const override;
diff --git a/svx/source/inc/fmexch.hxx b/svx/source/inc/fmexch.hxx
index 0b09eadf0839..c0c210f963f0 100644
--- a/svx/source/inc/fmexch.hxx
+++ b/svx/source/inc/fmexch.hxx
@@ -168,12 +168,12 @@ namespace svxform
const css::uno::Reference< css::form::XForms >& _rxFormsRoot
) { m_xFormsRoot = _rxFormsRoot; }
- void buildPathFormat(SvTreeListBox* pTreeBox, SvTreeListEntry* pRoot);
+ void buildPathFormat(SvTreeListBox const * pTreeBox, SvTreeListEntry const * pRoot);
// assembles m_aControlPaths from m_aSelectedEntries
// (it is assumed that the entries are sorted in m_aSelectedEntries with respect to the neighbor relationship)
- void buildListFromPath(SvTreeListBox* pTreeBox, SvTreeListEntry* pRoot);
+ void buildListFromPath(SvTreeListBox const * pTreeBox, SvTreeListEntry* pRoot);
// The reverse way: throws everything out of m_aSelectedEntries and rebuilds it using m_aControlPaths
void addHiddenControlsFormat(const css::uno::Sequence< css::uno::Reference< css::uno::XInterface > >& seqInterfaces);
diff --git a/svx/source/inc/fmexpl.hxx b/svx/source/inc/fmexpl.hxx
index f7be4afc3ddc..5012bd3f4900 100644
--- a/svx/source/inc/fmexpl.hxx
+++ b/svx/source/inc/fmexpl.hxx
@@ -326,10 +326,10 @@ namespace svxform
void UpdateContent( const css::uno::Reference< css::form::XForms >& xForms );
void InsertForm(const css::uno::Reference< css::form::XForm >& xForm, sal_uInt32 nRelPos);
- void RemoveForm(FmFormData* pFormData);
+ void RemoveForm(FmFormData const * pFormData);
void InsertFormComponent(const css::uno::Reference< css::form::XFormComponent >& xComp, sal_uInt32 nRelPos);
- void RemoveFormComponent(FmControlData* pControlData);
+ void RemoveFormComponent(FmControlData const * pControlData);
void InsertSdrObj(const SdrObject* pSdrObj);
void RemoveSdrObj(const SdrObject* pSdrObj);
@@ -346,7 +346,7 @@ namespace svxform
virtual ~NavigatorTreeModel() override;
void FillBranch( FmFormData* pParentData );
- void ClearBranch( FmFormData* pParentData );
+ void ClearBranch( FmFormData const * pParentData );
void UpdateContent( FmFormShell* pNewShell );
void Insert( FmEntryData* pEntryData, sal_uLong nRelPos = CONTAINER_APPEND,
@@ -362,9 +362,9 @@ namespace svxform
FmFormShell* GetFormShell() const { return m_pFormShell; }
FmFormPage* GetFormPage() const { return m_pFormPage; }
FmEntryData* FindData( const css::uno::Reference< css::uno::XInterface >& xElement, FmEntryDataList* pDataList, bool bRecurs=true );
- FmEntryData* FindData( const OUString& rText, FmFormData* pParentData, bool bRecurs );
+ FmEntryData* FindData( const OUString& rText, FmFormData const * pParentData, bool bRecurs );
FmEntryDataList* GetRootList() const { return m_pRootList; }
- static css::uno::Reference< css::container::XIndexContainer > GetFormComponents( FmFormData* pParentFormData );
+ static css::uno::Reference< css::container::XIndexContainer > GetFormComponents( FmFormData const * pParentFormData );
SdrObject* Search(SdrObjListIter& rIter, const css::uno::Reference< css::form::XFormComponent >& xComp);
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
@@ -411,8 +411,8 @@ namespace svxform
bool m_bInitialUpdate : 1; // am I the first time in the UpdateContent?
bool m_bKeyboardCut : 1;
- FmControlData* NewControl( const OUString& rServiceName, SvTreeListEntry* pParentEntry, bool bEditName );
- void NewForm( SvTreeListEntry* pParentEntry );
+ FmControlData* NewControl( const OUString& rServiceName, SvTreeListEntry const * pParentEntry, bool bEditName );
+ void NewForm( SvTreeListEntry const * pParentEntry );
SvTreeListEntry* Insert( FmEntryData* pEntryData, sal_uLong nRelPos );
void Remove( FmEntryData* pEntryData );
@@ -440,7 +440,7 @@ namespace svxform
void SynchronizeMarkList();
// reverse direction of SynchronizeMarkList: selects in the view all controls corresponding to the current selection
- void CollectObjects(FmFormData* pFormData, bool bDeep, ::std::set< css::uno::Reference< css::form::XFormComponent > >& _rObjects);
+ void CollectObjects(FmFormData const * pFormData, bool bDeep, ::std::set< css::uno::Reference< css::form::XFormComponent > >& _rObjects);
// in the Select I usually update the Marklist of the corresponding view,
// with the following functions I can control the locking of this behavior
@@ -448,7 +448,7 @@ namespace svxform
void UnlockSelectionHandling() { --m_nSelectLock; }
bool IsSelectionHandlingLocked() const { return m_nSelectLock>0; }
- static bool IsHiddenControl(FmEntryData* pEntryData);
+ static bool IsHiddenControl(FmEntryData const * pEntryData);
DECL_LINK( OnEdit, void*, void );
DECL_LINK( OnDropActionTimer, Timer*, void );
@@ -472,14 +472,14 @@ namespace svxform
void Clear();
void UpdateContent( FmFormShell* pFormShell );
- void MarkViewObj( FmFormData* pFormData, bool bDeep );
- void MarkViewObj( FmControlData* pControlData );
+ void MarkViewObj( FmFormData const * pFormData, bool bDeep );
+ void MarkViewObj( FmControlData const * pControlData );
void UnmarkAllViewObj();
- static bool IsFormEntry( SvTreeListEntry* pEntry );
- static bool IsFormComponentEntry( SvTreeListEntry* pEntry );
+ static bool IsFormEntry( SvTreeListEntry const * pEntry );
+ static bool IsFormComponentEntry( SvTreeListEntry const * pEntry );
- OUString GenerateName( FmEntryData* pEntryData );
+ OUString GenerateName( FmEntryData const * pEntryData );
NavigatorTreeModel* GetNavModel() const { return m_pNavModel; }
SvTreeListEntry* FindEntry( FmEntryData* pEntryData );
diff --git a/svx/source/inc/fmvwimp.hxx b/svx/source/inc/fmvwimp.hxx
index 603ed2fecfd0..4f028144851a 100644
--- a/svx/source/inc/fmvwimp.hxx
+++ b/svx/source/inc/fmvwimp.hxx
@@ -232,7 +232,7 @@ public:
*/
void resumeTabOrderUpdate();
- void onCreatedFormObject( FmFormObj& _rFormObject );
+ void onCreatedFormObject( FmFormObj const & _rFormObject );
void breakCreateFormObject();
@@ -250,7 +250,7 @@ private:
SdrObject* implCreateXFormsControl( const svx::OXFormsDescriptor &_rDesc );
static bool createControlLabelPair(
- OutputDevice& _rOutDev,
+ OutputDevice const & _rOutDev,
sal_Int32 _nXOffsetMM,
sal_Int32 _nYOffsetMM,
const css::uno::Reference< css::beans::XPropertySet >& _rxField,
@@ -267,7 +267,7 @@ private:
);
bool createControlLabelPair(
- OutputDevice& _rOutDev,
+ OutputDevice const & _rOutDev,
sal_Int32 _nXOffsetMM,
sal_Int32 _nYOffsetMM,
const css::uno::Reference< css::beans::XPropertySet >& _rxField,
diff --git a/svx/source/inc/gridcell.hxx b/svx/source/inc/gridcell.hxx
index 74372fc48700..2a9d33ea0903 100644
--- a/svx/source/inc/gridcell.hxx
+++ b/svx/source/inc/gridcell.hxx
@@ -166,7 +166,7 @@ public:
void SetReadOnly(bool bRead){m_bReadOnly = bRead;}
void SetObject(sal_Int16 nPos) {m_bObject = m_bReadOnly = true; m_nFieldPos = nPos;}
- void ImplInitWindow( vcl::Window& rParent, const InitWindowFacet _eInitWhat );
+ void ImplInitWindow( vcl::Window const & rParent, const InitWindowFacet _eInitWhat );
// properties that can bleed through onto the css::frame::Controller
sal_Int16 SetAlignment(sal_Int16 _nAlign);
@@ -292,7 +292,7 @@ public:
virtual void PaintFieldToCell( OutputDevice& rDev, const tools::Rectangle& rRect, const css::uno::Reference< css::sdb::XColumn >& _rxField, const css::uno::Reference< css::util::XNumberFormatter >& xFormatter);
virtual void PaintCell( OutputDevice& _rDev, const tools::Rectangle& _rRect );
- void ImplInitWindow( vcl::Window& rParent, const InitWindowFacet _eInitWhat );
+ void ImplInitWindow( vcl::Window const & rParent, const InitWindowFacet _eInitWhat );
double GetValue(const css::uno::Reference< css::sdb::XColumn >& _rxField, const css::uno::Reference< css::util::XNumberFormatter >& xFormatter) const;
@@ -779,7 +779,7 @@ public:
virtual void SAL_CALL removePaintListener( const css::uno::Reference< css::awt::XPaintListener >& xListener ) override;
bool Commit() {return m_pCellControl->Commit();}
- void ImplInitWindow( vcl::Window& rParent, const InitWindowFacet _eInitWhat )
+ void ImplInitWindow( vcl::Window const & rParent, const InitWindowFacet _eInitWhat )
{ m_pCellControl->ImplInitWindow( rParent, _eInitWhat ); }
bool isAlignedController() const { return m_pCellControl->isAlignedController(); }
diff --git a/svx/source/inc/tabwin.hxx b/svx/source/inc/tabwin.hxx
index 73d98dbe5ec3..e855fc86d337 100644
--- a/svx/source/inc/tabwin.hxx
+++ b/svx/source/inc/tabwin.hxx
@@ -89,7 +89,7 @@ public:
virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState,
const SfxPoolItem* pState) override;
- void UpdateContent(FmFormShell*);
+ void UpdateContent(FmFormShell const *);
void UpdateContent(const css::uno::Reference< css::form::XForm > &);
void FillInfo( SfxChildWinInfo& rInfo ) const override;