diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-05 15:20:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-06 20:13:53 +0200 |
commit | 8ef6be73325dbb6761b247ff187c709ba0f81bfb (patch) | |
tree | f7f066cf9cf154061cbc2b584d977eb6fc4ad03c /sw/inc | |
parent | 8f629b8fbeb13a593f6aff28d2ff0399eb4ee56a (diff) |
loplugin:constparams in sw part6
Change-Id: Ic82946cf9be50d9d9c43338b86dfb700ce5b354c
Reviewed-on: https://gerrit.libreoffice.org/40786
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/AnnotationWin.hxx | 4 | ||||
-rw-r--r-- | sw/inc/PostItMgr.hxx | 2 | ||||
-rw-r--r-- | sw/inc/dbmgr.hxx | 2 | ||||
-rw-r--r-- | sw/inc/docsh.hxx | 4 | ||||
-rw-r--r-- | sw/inc/mdiexp.hxx | 20 | ||||
-rw-r--r-- | sw/inc/swmodule.hxx | 4 | ||||
-rw-r--r-- | sw/inc/viewopt.hxx | 2 |
7 files changed, 19 insertions, 19 deletions
diff --git a/sw/inc/AnnotationWin.hxx b/sw/inc/AnnotationWin.hxx index 29080823050a..7165f80c48af 100644 --- a/sw/inc/AnnotationWin.hxx +++ b/sw/inc/AnnotationWin.hxx @@ -84,7 +84,7 @@ class SwAnnotationWin : public vcl::Window /// Calculate parent postit id of current annotation window sal_uInt32 CalcParent(); - void InitAnswer(OutlinerParaObject* pText); + void InitAnswer(OutlinerParaObject const * pText); bool IsProtected(); @@ -178,7 +178,7 @@ class SwAnnotationWin : public vcl::Window void SetLanguage(const SvxLanguageItem& rNewItem); - void ChangeSidebarItem( SwSidebarItem& rSidebarItem ); + void ChangeSidebarItem( SwSidebarItem const & rSidebarItem ); virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override; virtual void Draw(OutputDevice* pDev, const Point&, const Size&, DrawFlags) override; diff --git a/sw/inc/PostItMgr.hxx b/sw/inc/PostItMgr.hxx index 98055cf451cd..65209c00d334 100644 --- a/sw/inc/PostItMgr.hxx +++ b/sw/inc/PostItMgr.hxx @@ -275,7 +275,7 @@ class SwPostItMgr: public SfxListener const OUString& GetAnswerText() { return maAnswerText; } void CheckMetaText(); - sal_uInt16 Replace(SvxSearchItem* pItem); + sal_uInt16 Replace(SvxSearchItem const * pItem); sal_uInt16 SearchReplace(const SwFormatField &pField, const i18nutil::SearchOptions2& rSearchOptions,bool bSrchForward); sal_uInt16 FinishSearchReplace(const i18nutil::SearchOptions2& rSearchOptions,bool bSrchForward); diff --git a/sw/inc/dbmgr.hxx b/sw/inc/dbmgr.hxx index 7282acfb3a7f..2b9cb62c814d 100644 --- a/sw/inc/dbmgr.hxx +++ b/sw/inc/dbmgr.hxx @@ -309,7 +309,7 @@ public: bool IsMergeOk() { return MergeStatus::OK == m_aMergeStatus; }; bool IsMergeError() { return MergeStatus::ERROR <= m_aMergeStatus; }; - static std::shared_ptr<SwMailMergeConfigItem> PerformMailMerge(SwView* pView); + static std::shared_ptr<SwMailMergeConfigItem> PerformMailMerge(SwView const * pView); /// Initialize data fields that lack name of database. bool IsInitDBFields() const { return bInitDBFields; } diff --git a/sw/inc/docsh.hxx b/sw/inc/docsh.hxx index 60b25f9c2918..62f4cf4e56d2 100644 --- a/sw/inc/docsh.hxx +++ b/sw/inc/docsh.hxx @@ -226,7 +226,7 @@ public: /// For inserting document. Reader* StartConvertFrom(SfxMedium& rMedium, SwReader** ppRdr, - SwCursorShell* pCursorSh = nullptr, SwPaM* pPaM = nullptr); + SwCursorShell const * pCursorSh = nullptr, SwPaM* pPaM = nullptr); #if defined(_WIN32) virtual bool DdeGetData( const OUString& rItem, const OUString& rMimeType, @@ -277,7 +277,7 @@ public: void ToggleLayoutMode(SwView* pView); - ErrCode LoadStylesFromFile( const OUString& rURL, SwgReaderOption& rOpt, + ErrCode LoadStylesFromFile( const OUString& rURL, SwgReaderOption const & rOpt, bool bUnoCall ); void InvalidateModel(); void ReactivateModel(); diff --git a/sw/inc/mdiexp.hxx b/sw/inc/mdiexp.hxx index be76b619db6e..924d44a2f750 100644 --- a/sw/inc/mdiexp.hxx +++ b/sw/inc/mdiexp.hxx @@ -30,12 +30,12 @@ class SwViewShell; class SwDoc; class SwDocShell; -extern void ScrollMDI(SwViewShell* pVwSh, const SwRect &, sal_uInt16 nRangeX, sal_uInt16 nRangeY); -extern bool IsScrollMDI(SwViewShell* pVwSh, const SwRect &); -extern void SizeNotify(SwViewShell* pVwSh, const Size &); +extern void ScrollMDI(SwViewShell const * pVwSh, const SwRect &, sal_uInt16 nRangeX, sal_uInt16 nRangeY); +extern bool IsScrollMDI(SwViewShell const * pVwSh, const SwRect &); +extern void SizeNotify(SwViewShell const * pVwSh, const Size &); // Update of status bar during an action. -extern void PageNumNotify( SwViewShell* pVwSh, +extern void PageNumNotify( SwViewShell const * pVwSh, sal_uInt16 nPhyNum, sal_uInt16 nVirtNum, const OUString& rPg ); @@ -44,17 +44,17 @@ enum FlyMode { FLY_DRAG_START, FLY_DRAG, FLY_DRAG_END }; extern void FrameNotify( SwViewShell* pVwSh, FlyMode eMode = FLY_DRAG ); SW_DLLPUBLIC void StartProgress(const char* pMessId, long nStartVal, long nEndVal, SwDocShell *pDocSh = nullptr); -SW_DLLPUBLIC void EndProgress ( SwDocShell *pDocSh ); -SW_DLLPUBLIC void SetProgressState ( long nPosition, SwDocShell *pDocShell ); -void SetProgressText(const char* pMessId, SwDocShell *pDocShell); -void RescheduleProgress( SwDocShell *pDocShell ); +SW_DLLPUBLIC void EndProgress ( SwDocShell const *pDocSh ); +SW_DLLPUBLIC void SetProgressState ( long nPosition, SwDocShell const *pDocShell ); +void SetProgressText(const char* pMessId, SwDocShell const *pDocShell); +void RescheduleProgress( SwDocShell const *pDocShell ); -void RepaintPagePreview( SwViewShell* pVwSh, const SwRect& rRect ); +void RepaintPagePreview( SwViewShell const * pVwSh, const SwRect& rRect ); // Read ChgMode for tables from configuration. TableChgMode GetTableChgDefaultMode(); -bool JumpToSwMark( SwViewShell* pVwSh, const OUString& rMark ); +bool JumpToSwMark( SwViewShell const * pVwSh, const OUString& rMark ); #endif diff --git a/sw/inc/swmodule.hxx b/sw/inc/swmodule.hxx index 3c7839ffa6ce..a70e4a24fd5f 100644 --- a/sw/inc/swmodule.hxx +++ b/sw/inc/swmodule.hxx @@ -178,12 +178,12 @@ public: // Iterate over views. static SwView* GetFirstView(); - static SwView* GetNextView(SwView*); + static SwView* GetNextView(SwView const *); bool IsEmbeddedLoadSave() const { return m_bEmbeddedLoadSave; } void SetEmbeddedLoadSave( bool bFlag ) { m_bEmbeddedLoadSave = bFlag; } - static void ShowDBObj( SwView& rView, const SwDBData& rData); + static void ShowDBObj( SwView const & rView, const SwDBData& rData); // Table modi. bool IsInsTableFormatNum(bool bHTML) const; diff --git a/sw/inc/viewopt.hxx b/sw/inc/viewopt.hxx index eb020b478787..2f51b526cfb2 100644 --- a/sw/inc/viewopt.hxx +++ b/sw/inc/viewopt.hxx @@ -195,7 +195,7 @@ public: SwViewOption(const SwViewOption&); ~SwViewOption(); - static void Init( vcl::Window *pWin ); // Initializing of static data. + static void Init( vcl::Window const *pWin ); // Initializing of static data. ViewOptFlags1 GetCoreOptions() const {return m_nCoreOptions;} inline void SetUIOptions( const SwViewOption& ); |