diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-21 09:27:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-21 11:39:01 +0200 |
commit | 7ed178077cc1348d72ae936a2762085e278d79d0 (patch) | |
tree | 647c72fc783a77f2347ee06a63e22eee79fef99c /include/sfx2 | |
parent | bc7a68d06c0fd92b8eda473600438fd6dc2164c6 (diff) |
loplugin:constparams in sfx2
Change-Id: Id982c8fb5654433e9db10e2da6a86a6c8d90b9b4
Reviewed-on: https://gerrit.libreoffice.org/40261
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2')
33 files changed, 61 insertions, 61 deletions
diff --git a/include/sfx2/app.hxx b/include/sfx2/app.hxx index 28e41d416863..54735e437f6e 100644 --- a/include/sfx2/app.hxx +++ b/include/sfx2/app.hxx @@ -146,7 +146,7 @@ public: #if defined(_WIN32) void AddDdeTopic( SfxObjectShell* ); #endif - void RemoveDdeTopic( SfxObjectShell* ); + void RemoveDdeTopic( SfxObjectShell const * ); // "static" methods /** diff --git a/include/sfx2/basedlgs.hxx b/include/sfx2/basedlgs.hxx index c92fedf434e8..227a53f5054b 100644 --- a/include/sfx2/basedlgs.hxx +++ b/include/sfx2/basedlgs.hxx @@ -101,7 +101,7 @@ protected: public: virtual void FillInfo(SfxChildWinInfo&) const; - void Initialize (SfxChildWinInfo* pInfo); + void Initialize (SfxChildWinInfo const * pInfo); virtual bool EventNotify( NotifyEvent& rNEvt ) override; SfxBindings& GetBindings() { return *pBindings; } @@ -144,7 +144,7 @@ protected: public: virtual void FillInfo(SfxChildWinInfo&) const; - void Initialize (SfxChildWinInfo* pInfo); + void Initialize (SfxChildWinInfo const * pInfo); DECL_LINK(TimerHdl, Timer *, void); diff --git a/include/sfx2/bindings.hxx b/include/sfx2/bindings.hxx index d34f2ff0931a..ed78d4acee6e 100644 --- a/include/sfx2/bindings.hxx +++ b/include/sfx2/bindings.hxx @@ -115,7 +115,7 @@ private: SfxItemState eItemState ); SAL_DLLPRIVATE SfxStateCache* GetStateCache( sal_uInt16 nId, std::size_t * pPos); DECL_DLLPRIVATE_LINK( NextJob, Timer *, void ); - SAL_DLLPRIVATE bool NextJob_Impl(Timer * pTimer); + SAL_DLLPRIVATE bool NextJob_Impl(Timer const * pTimer); public: SfxBindings(); @@ -174,7 +174,7 @@ public: SAL_DLLPRIVATE SfxWorkWindow* GetWorkWindow_Impl() const; SAL_DLLPRIVATE void SetWorkWindow_Impl( SfxWorkWindow* ); SAL_DLLPRIVATE SfxBindings* GetSubBindings_Impl() const; - SAL_DLLPRIVATE void SetRecorder_Impl( css::uno::Reference< css::frame::XDispatchRecorder >& ); + SAL_DLLPRIVATE void SetRecorder_Impl( css::uno::Reference< css::frame::XDispatchRecorder > const & ); SAL_DLLPRIVATE void InvalidateSlotsInMap_Impl(); SAL_DLLPRIVATE void AddSlotToInvalidateSlotsMap_Impl( sal_uInt16 nId ); }; diff --git a/include/sfx2/childwin.hxx b/include/sfx2/childwin.hxx index 8b718c3cdaa0..cf908713bdf8 100644 --- a/include/sfx2/childwin.hxx +++ b/include/sfx2/childwin.hxx @@ -182,14 +182,14 @@ public: vcl::Window* GetContextWindow() const { return pContext ? pContext->GetWindow(): nullptr; } - vcl::Window* GetContextWindow( SfxModule *pModule ) const; + vcl::Window* GetContextWindow( SfxModule const *pModule ) const; virtual SfxChildWinInfo GetInfo() const; void SaveStatus(const SfxChildWinInfo& rInfo); static void RegisterChildWindow(SfxModule*, SfxChildWinFactory*); - static SfxChildWindow* CreateChildWindow( sal_uInt16, vcl::Window*, SfxBindings*, SfxChildWinInfo&); + static SfxChildWindow* CreateChildWindow( sal_uInt16, vcl::Window*, SfxBindings*, SfxChildWinInfo const &); void SetHideNotDelete( bool bOn ); bool IsHideNotDelete() const; bool IsVisible() const; diff --git a/include/sfx2/dialoghelper.hxx b/include/sfx2/dialoghelper.hxx index 5201113c6bc1..aa0b70b457ee 100644 --- a/include/sfx2/dialoghelper.hxx +++ b/include/sfx2/dialoghelper.hxx @@ -26,7 +26,7 @@ class VclBuilderContainer; //there has to be a "maingrid" container which contains all the widgets //except for the preview widget -void SFX2_DLLPUBLIC setPreviewsToSamePlace(vcl::Window *pParent, VclBuilderContainer *pPage); +void SFX2_DLLPUBLIC setPreviewsToSamePlace(vcl::Window const *pParent, VclBuilderContainer *pPage); Size SFX2_DLLPUBLIC getParagraphPreviewOptimalSize(const vcl::Window *pReference); diff --git a/include/sfx2/dinfdlg.hxx b/include/sfx2/dinfdlg.hxx index 216fa6fc9aee..1de0c95b680f 100644 --- a/include/sfx2/dinfdlg.hxx +++ b/include/sfx2/dinfdlg.hxx @@ -437,7 +437,7 @@ public: bool InitControls( HeaderBar* pHeaderBar, const ScrollBar* pScrollBar ); sal_uInt16 GetVisibleLineCount() const; sal_Int32 GetLineHeight() const { return m_nLineHeight; } - void AddLine( const OUString& sName, css::uno::Any& rAny ); + void AddLine( const OUString& sName, css::uno::Any const & rAny ); bool AreAllLinesValid() const; void ClearAllLines(); void DoScroll( sal_Int32 nNewPos ); @@ -470,7 +470,7 @@ public: virtual ~CustomPropertiesControl() override; virtual void dispose() override; - void AddLine( const OUString& sName, css::uno::Any& rAny, bool bInteractive ); + void AddLine( const OUString& sName, css::uno::Any const & rAny, bool bInteractive ); bool AreAllLinesValid() const { return m_pPropertiesWin->AreAllLinesValid(); } void ClearAllLines() { m_pPropertiesWin->ClearAllLines(); } @@ -569,7 +569,7 @@ public: const bool bRequired, const bool bMultiValued, const bool bOpenChoice, css::uno::Any& aChoices, - css::uno::Any& rAny ); + css::uno::Any const & rAny ); void ClearAllLines(); void DoScroll( sal_Int32 nNewPos ); @@ -598,7 +598,7 @@ public: const bool bRequired, const bool bMultiValude, const bool bOpenChoice, css::uno::Any& aChoices, - css::uno::Any& rAny ); + css::uno::Any const & rAny ); void ClearAllLines(); css::uno::Sequence< css::document::CmisProperty > diff --git a/include/sfx2/dispatch.hxx b/include/sfx2/dispatch.hxx index ca65eeecb198..43776a86b659 100644 --- a/include/sfx2/dispatch.hxx +++ b/include/sfx2/dispatch.hxx @@ -126,8 +126,8 @@ public: const SfxPoolItem* Execute( sal_uInt16 nSlot, SfxCallMode nCall, - SfxItemSet* pArgs, - SfxItemSet* pInternalArgs, + SfxItemSet const * pArgs, + SfxItemSet const * pInternalArgs, sal_uInt16 nModi); const SfxPoolItem* ExecuteList( sal_uInt16 nSlot, @@ -183,7 +183,7 @@ public: SAL_DLLPRIVATE bool IsReadOnlyShell_Impl( sal_uInt16 nShell ) const; SAL_DLLPRIVATE void RemoveShell_Impl( SfxShell& rShell ); SAL_DLLPRIVATE void DoActivate_Impl( bool bMDI ); - SAL_DLLPRIVATE void DoDeactivate_Impl( bool bMDI, SfxViewFrame* pNew ); + SAL_DLLPRIVATE void DoDeactivate_Impl( bool bMDI, SfxViewFrame const * pNew ); SAL_DLLPRIVATE void InvalidateBindings_Impl(bool); }; diff --git a/include/sfx2/docfile.hxx b/include/sfx2/docfile.hxx index 38d5f691a133..fc44f2d9ce86 100644 --- a/include/sfx2/docfile.hxx +++ b/include/sfx2/docfile.hxx @@ -216,7 +216,7 @@ public: SAL_DLLPRIVATE void CloseAndReleaseStreams_Impl(); SAL_DLLPRIVATE void AddVersion_Impl( css::util::RevisionTag& rVersion ); - SAL_DLLPRIVATE bool TransferVersionList_Impl( SfxMedium& rMedium ); + SAL_DLLPRIVATE bool TransferVersionList_Impl( SfxMedium const & rMedium ); SAL_DLLPRIVATE void SaveVersionList_Impl(); SAL_DLLPRIVATE void RemoveVersion_Impl( const OUString& rVersion ); @@ -227,7 +227,7 @@ public: SAL_DLLPRIVATE void GetLockingStream_Impl(); SAL_DLLPRIVATE void GetMedium_Impl(); - SAL_DLLPRIVATE bool TryDirectTransfer( const OUString& aURL, SfxItemSet& aTargetSet ); + SAL_DLLPRIVATE bool TryDirectTransfer( const OUString& aURL, SfxItemSet const & aTargetSet ); SAL_DLLPRIVATE void Transfer_Impl(); SAL_DLLPRIVATE void CreateFileStream(); SAL_DLLPRIVATE void SetUpdatePickList(bool); diff --git a/include/sfx2/docinf.hxx b/include/sfx2/docinf.hxx index a1c03eb08371..e31c69756b75 100644 --- a/include/sfx2/docinf.hxx +++ b/include/sfx2/docinf.hxx @@ -64,7 +64,7 @@ bool SFX2_DLLPUBLIC SaveOlePropertySet( css::uno::Sequence<sal_Int8> SFX2_DLLPUBLIC convertMetaFile( - GDIMetaFile* i_pThumb); + GDIMetaFile const * i_pThumb); } // namespace sfx2 diff --git a/include/sfx2/evntconf.hxx b/include/sfx2/evntconf.hxx index ff9cc8a39eed..2a7078ff3661 100644 --- a/include/sfx2/evntconf.hxx +++ b/include/sfx2/evntconf.hxx @@ -99,7 +99,7 @@ public: class SFX2_DLLPUBLIC SfxEventConfiguration { public: - static void ConfigureEvent( const OUString& aName, const SvxMacro&, SfxObjectShell* pObjSh); + static void ConfigureEvent( const OUString& aName, const SvxMacro&, SfxObjectShell const * pObjSh); static SvxMacro* ConvertToMacro( const css::uno::Any& rElement, SfxObjectShell* pDoc, bool bBlowUp ); }; diff --git a/include/sfx2/fcontnr.hxx b/include/sfx2/fcontnr.hxx index 414e88044f5e..9e5559923ffd 100644 --- a/include/sfx2/fcontnr.hxx +++ b/include/sfx2/fcontnr.hxx @@ -83,7 +83,7 @@ public: SAL_DLLPRIVATE static bool IsFilterInstalled_Impl( const std::shared_ptr<const SfxFilter>& pFilter ); DECL_DLLPRIVATE_LINK( MaybeFileHdl_Impl, OUString*, bool ); - ErrCode GuessFilterIgnoringContent( SfxMedium& rMedium, std::shared_ptr<const SfxFilter>& ) const; + ErrCode GuessFilterIgnoringContent( SfxMedium const & rMedium, std::shared_ptr<const SfxFilter>& ) const; ErrCode GuessFilter( SfxMedium& rMedium, std::shared_ptr<const SfxFilter>& , SfxFilterFlags nMust = SfxFilterFlags::IMPORT, SfxFilterFlags nDont = SFX_FILTER_NOTINSTALLED ) const; ErrCode GuessFilterControlDefaultUI( SfxMedium& rMedium, std::shared_ptr<const SfxFilter>&, SfxFilterFlags nMust = SfxFilterFlags::IMPORT, SfxFilterFlags nDont = SFX_FILTER_NOTINSTALLED ) const; ErrCode DetectFilter( SfxMedium& rMedium, std::shared_ptr<const SfxFilter>& ) const; diff --git a/include/sfx2/filedlghelper.hxx b/include/sfx2/filedlghelper.hxx index c371244dc6a6..44e673a3778f 100644 --- a/include/sfx2/filedlghelper.hxx +++ b/include/sfx2/filedlghelper.hxx @@ -254,7 +254,7 @@ ErrCode FileOpenDialog_Impl( sal_Int16 nDialogType, const css::uno::Sequence< OUString >& rBlackList = css::uno::Sequence< OUString >()); -ErrCode RequestPassword(const std::shared_ptr<const SfxFilter>& pCurrentFilter, OUString& aURL, SfxItemSet* pSet); +ErrCode RequestPassword(const std::shared_ptr<const SfxFilter>& pCurrentFilter, OUString const & aURL, SfxItemSet* pSet); } #endif diff --git a/include/sfx2/frame.hxx b/include/sfx2/frame.hxx index 0884b90523da..2bff62987274 100644 --- a/include/sfx2/frame.hxx +++ b/include/sfx2/frame.hxx @@ -111,7 +111,7 @@ public: static SfxFrame* Create( const css::uno::Reference< css::frame::XFrame >& xFrame ); static css::uno::Reference< css::frame::XFrame > CreateBlankFrame(); - static SfxFrame* Create( SfxObjectShell& rDoc, vcl::Window& rWindow, SfxInterfaceId nViewId, bool bHidden ); + static SfxFrame* Create( SfxObjectShell const & rDoc, vcl::Window& rWindow, SfxInterfaceId nViewId, bool bHidden ); vcl::Window& GetWindow() const { return *pWindow;} void CancelTransfers(); @@ -131,7 +131,7 @@ public: sal_uInt32 GetFrameType() const; static void GetDefaultTargetList( TargetList& ); void GetTargetList( TargetList& ) const; - void UpdateDescriptor( SfxObjectShell *pDoc ); + void UpdateDescriptor( SfxObjectShell const *pDoc ); void Resize(); const css::uno::Reference< css::frame::XFrame >& GetFrameInterface() const; diff --git a/include/sfx2/ipclient.hxx b/include/sfx2/ipclient.hxx index 0bc3d99ebc21..97aaf8db6f8d 100644 --- a/include/sfx2/ipclient.hxx +++ b/include/sfx2/ipclient.hxx @@ -78,7 +78,7 @@ public: const Fraction& GetScaleWidth() const; const Fraction& GetScaleHeight() const; void Invalidate(); - static SfxInPlaceClient* GetClient( SfxObjectShell* pDoc, const css::uno::Reference < css::embed::XEmbeddedObject >& xObject ); + static SfxInPlaceClient* GetClient( SfxObjectShell const * pDoc, const css::uno::Reference < css::embed::XEmbeddedObject >& xObject ); sal_Int64 GetAspect() const; sal_Int64 GetObjectMiscStatus() const; ErrCode DoVerb( long nVerb ); diff --git a/include/sfx2/linkmgr.hxx b/include/sfx2/linkmgr.hxx index ce8d3eefd11c..ed939d32e7fe 100644 --- a/include/sfx2/linkmgr.hxx +++ b/include/sfx2/linkmgr.hxx @@ -86,7 +86,7 @@ public: SfxObjectShell* GetPersist() const { return pPersist; } void SetPersist( SfxObjectShell * p ) { pPersist = p; } - void Remove( SvBaseLink *pLink ); + void Remove( SvBaseLink const *pLink ); void Remove( size_t nPos, size_t nCnt = 1 ); bool Insert( SvBaseLink* pLink ); @@ -124,7 +124,7 @@ public: OUString* pLink = nullptr, OUString* pFilter = nullptr ); - static SvLinkSourceRef CreateObj( SvBaseLink* ); + static SvLinkSourceRef CreateObj( SvBaseLink const * ); void UpdateAllLinks( bool bAskUpdate, bool bUpdateGrfLinks, diff --git a/include/sfx2/linksrc.hxx b/include/sfx2/linksrc.hxx index 8c2770a4e1d4..bcc6e88b8ba7 100644 --- a/include/sfx2/linksrc.hxx +++ b/include/sfx2/linksrc.hxx @@ -88,10 +88,10 @@ public: void AddDataAdvise( SvBaseLink *, const rtl::OUString & rMimeType, sal_uInt16 nAdviceMode ); - void RemoveAllDataAdvise( SvBaseLink * ); + void RemoveAllDataAdvise( SvBaseLink const * ); void AddConnectAdvise( SvBaseLink * ); - void RemoveConnectAdvise( SvBaseLink * ); + void RemoveConnectAdvise( SvBaseLink const * ); struct StreamToLoadFrom{ StreamToLoadFrom( diff --git a/include/sfx2/lokhelper.hxx b/include/sfx2/lokhelper.hxx index 669d0f78d226..478897171ca3 100644 --- a/include/sfx2/lokhelper.hxx +++ b/include/sfx2/lokhelper.hxx @@ -39,9 +39,9 @@ public: /// Invoke the LOK callback of all views except pThisView, with a payload of rKey-rPayload. static void notifyOtherViews(SfxViewShell* pThisView, int nType, const OString& rKey, const OString& rPayload); /// Same as notifyOtherViews(), but works on a selected "other" view, not on all of them. - static void notifyOtherView(SfxViewShell* pThisView, SfxViewShell* pOtherView, int nType, const OString& rKey, const OString& rPayload); + static void notifyOtherView(SfxViewShell* pThisView, SfxViewShell const * pOtherView, int nType, const OString& rKey, const OString& rPayload); /// Emits a LOK_CALLBACK_INVALIDATE_TILES, but tweaks it according to setOptionalFeatures() if needed. - static void notifyInvalidation(SfxViewShell* pThisView, const OString& rPayload); + static void notifyInvalidation(SfxViewShell const * pThisView, const OString& rPayload); /// A special value to signify 'infinity'. /// This value is chosen such that sal_Int32 will not overflow when manipulated. static const long MaxTwips = 1e9; diff --git a/include/sfx2/notebookbar/NotebookbarTabControl.hxx b/include/sfx2/notebookbar/NotebookbarTabControl.hxx index fa1b13cc10db..316641010013 100644 --- a/include/sfx2/notebookbar/NotebookbarTabControl.hxx +++ b/include/sfx2/notebookbar/NotebookbarTabControl.hxx @@ -31,7 +31,7 @@ public: virtual Size calculateRequisition() const override; private: - static void FillShortcutsToolBox(css::uno::Reference<css::uno::XComponentContext>& xContext, + static void FillShortcutsToolBox(css::uno::Reference<css::uno::XComponentContext> const & xContext, const css::uno::Reference<css::frame::XFrame>& xFrame, const OUString& aModuleName, ToolBox* pShortcuts diff --git a/include/sfx2/notebookbar/SfxNotebookBar.hxx b/include/sfx2/notebookbar/SfxNotebookBar.hxx index 37a64ffef609..e3c397a5bd62 100644 --- a/include/sfx2/notebookbar/SfxNotebookBar.hxx +++ b/include/sfx2/notebookbar/SfxNotebookBar.hxx @@ -41,7 +41,7 @@ public: /// Method restores normal behaviour of the Notebookbar static void UnlockNotebookBar(); - static void RemoveListeners(SystemWindow* pSysWindow); + static void RemoveListeners(SystemWindow const * pSysWindow); static void ShowMenubar(bool bShow); static void ToggleMenubar(); diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx index 6b6f5758dfca..bc33bb1dd33d 100644 --- a/include/sfx2/objsh.hxx +++ b/include/sfx2/objsh.hxx @@ -420,7 +420,7 @@ public: const css::uno::Sequence< css::beans::PropertyValue >& GetModifyPasswordInfo() const; bool SetModifyPasswordInfo( const css::uno::Sequence< css::beans::PropertyValue >& aInfo ); - static ErrCode HandleFilter( SfxMedium* pMedium, SfxObjectShell* pDoc ); + static ErrCode HandleFilter( SfxMedium* pMedium, SfxObjectShell const * pDoc ); virtual bool PrepareClose(bool bUI = true); virtual HiddenInformation GetHiddenInformationState( HiddenInformation nStates ); @@ -563,7 +563,7 @@ public: virtual css::uno::Sequence< OUString > GetEventNames(); - vcl::Window* GetDialogParent( SfxMedium* pMedium=nullptr ); + vcl::Window* GetDialogParent( SfxMedium const * pMedium=nullptr ); static SfxObjectShell* CreateObject( const OUString& rServiceName, SfxObjectCreateMode = SfxObjectCreateMode::STANDARD ); static SfxObjectShell* CreateObjectByFactoryName( const OUString& rURL, SfxObjectCreateMode = SfxObjectCreateMode::STANDARD ); static css::uno::Reference< css::lang::XComponent > @@ -715,7 +715,7 @@ public: SAL_DLLPRIVATE void SetNamedVisibility_Impl(); SAL_DLLPRIVATE bool DoSave_Impl( const SfxItemSet* pSet ); SAL_DLLPRIVATE bool Save_Impl( const SfxItemSet* pSet ); - SAL_DLLPRIVATE bool PreDoSaveAs_Impl(const OUString& rFileName, const OUString& rFiltName, SfxItemSet& rItemSet); + SAL_DLLPRIVATE bool PreDoSaveAs_Impl(const OUString& rFileName, const OUString& rFiltName, SfxItemSet const & rItemSet); SAL_DLLPRIVATE bool APISaveAs_Impl(const OUString& aFileName, SfxItemSet& rItemSet); SAL_DLLPRIVATE bool CommonSaveAs_Impl(const INetURLObject& aURL, const OUString& aFilterName, SfxItemSet& rItemSet); SAL_DLLPRIVATE bool GeneralInit_Impl( @@ -727,7 +727,7 @@ public: // public-internals SAL_DLLPRIVATE IndexBitSet& GetNoSet_Impl(); SAL_DLLPRIVATE void SetProgress_Impl( SfxProgress *pProgress ); - SAL_DLLPRIVATE void PostActivateEvent_Impl( SfxViewFrame* ); + SAL_DLLPRIVATE void PostActivateEvent_Impl( SfxViewFrame const * ); SAL_DLLPRIVATE void SetActivateEvent_Impl(SfxEventHintId ); SAL_DLLPRIVATE SfxObjectShell* GetParentShellByModel_Impl(); diff --git a/include/sfx2/progress.hxx b/include/sfx2/progress.hxx index 9153dae3758c..ba945002a64d 100644 --- a/include/sfx2/progress.hxx +++ b/include/sfx2/progress.hxx @@ -60,7 +60,7 @@ public: void Stop(); - static SfxProgress* GetActiveProgress( SfxObjectShell *pDocSh = nullptr ); + static SfxProgress* GetActiveProgress( SfxObjectShell const *pDocSh = nullptr ); static void EnterLock(); static void LeaveLock(); }; diff --git a/include/sfx2/request.hxx b/include/sfx2/request.hxx index b95ca969ed8f..86a9630b0f03 100644 --- a/include/sfx2/request.hxx +++ b/include/sfx2/request.hxx @@ -94,8 +94,8 @@ public: void SetReturnValue(const SfxPoolItem &); const SfxPoolItem* GetReturnValue() const; - static css::uno::Reference< css::frame::XDispatchRecorder > GetMacroRecorder( SfxViewFrame* pFrame ); - static bool HasMacroRecorder( SfxViewFrame* pFrame ); + static css::uno::Reference< css::frame::XDispatchRecorder > GetMacroRecorder( SfxViewFrame const * pFrame ); + static bool HasMacroRecorder( SfxViewFrame const * pFrame ); SfxCallMode GetCallMode() const; void AllowRecording( bool ); bool AllowsRecording() const; diff --git a/include/sfx2/sfxbasecontroller.hxx b/include/sfx2/sfxbasecontroller.hxx index 6f8f8fbf3323..d7741b76e8c0 100644 --- a/include/sfx2/sfxbasecontroller.hxx +++ b/include/sfx2/sfxbasecontroller.hxx @@ -179,7 +179,7 @@ public: // FIXME: TL needs this in sw/source/ui/uno/unotxdoc.cxx now; // either the _Impl name should vanish or there should be an "official" API SfxViewShell* GetViewShell_Impl() const; - SAL_DLLPRIVATE bool HandleEvent_Impl( NotifyEvent& rEvent ); + SAL_DLLPRIVATE bool HandleEvent_Impl( NotifyEvent const & rEvent ); SAL_DLLPRIVATE bool HasKeyListeners_Impl(); SAL_DLLPRIVATE bool HasMouseClickListeners_Impl(); SAL_DLLPRIVATE void SetCreationArguments_Impl( const css::uno::Sequence< css::beans::PropertyValue >& i_rCreationArgs ); diff --git a/include/sfx2/shell.hxx b/include/sfx2/shell.hxx index e82a000a9f13..41d65d3e134b 100644 --- a/include/sfx2/shell.hxx +++ b/include/sfx2/shell.hxx @@ -501,7 +501,7 @@ public: Then the subclass gets the opportunity in every case to respond to the event by calling the virtual method <SfxShell::Deactivate(sal_Bool)>. */ - SAL_DLLPRIVATE void DoDeactivate_Impl( SfxViewFrame *pFrame, bool bMDI); + SAL_DLLPRIVATE void DoDeactivate_Impl( SfxViewFrame const *pFrame, bool bMDI); }; /** diff --git a/include/sfx2/sidebar/Deck.hxx b/include/sfx2/sidebar/Deck.hxx index 044c7edfda8c..b1edcf942fcf 100644 --- a/include/sfx2/sidebar/Deck.hxx +++ b/include/sfx2/sidebar/Deck.hxx @@ -92,7 +92,7 @@ private: VclPtr<ScrollBar> mpVerticalScrollBar; DECL_LINK(HandleVerticalScrollBarChange, ScrollBar*, void); - bool ProcessWheelEvent(CommandEvent* pCommandEvent); + bool ProcessWheelEvent(CommandEvent const * pCommandEvent); }; diff --git a/include/sfx2/sidebar/SidebarChildWindow.hxx b/include/sfx2/sidebar/SidebarChildWindow.hxx index b703ced082f5..1fcb25431d94 100644 --- a/include/sfx2/sidebar/SidebarChildWindow.hxx +++ b/include/sfx2/sidebar/SidebarChildWindow.hxx @@ -38,7 +38,7 @@ public: SFX_DECL_CHILDWINDOW_WITHID(SidebarChildWindow); - static sal_Int32 GetDefaultWidth(vcl::Window* pWindow); + static sal_Int32 GetDefaultWidth(vcl::Window const * pWindow); }; diff --git a/include/sfx2/stbitem.hxx b/include/sfx2/stbitem.hxx index a98d66e8e949..e8c0f2a354b3 100644 --- a/include/sfx2/stbitem.hxx +++ b/include/sfx2/stbitem.hxx @@ -111,7 +111,7 @@ public: sal_uInt16 GetId() const { return nId; } StatusBar& GetStatusBar() const { return *pBar; } - static SfxStatusBarControl* CreateControl( sal_uInt16 nSlotID, sal_uInt16 nId, StatusBar *pBar, SfxModule* ); + static SfxStatusBarControl* CreateControl( sal_uInt16 nSlotID, sal_uInt16 nId, StatusBar *pBar, SfxModule const * ); static void RegisterStatusBarControl(SfxModule*, const SfxStbCtrlFactory&); }; diff --git a/include/sfx2/tbxctrl.hxx b/include/sfx2/tbxctrl.hxx index c23da95f24cc..39a7997ac916 100644 --- a/include/sfx2/tbxctrl.hxx +++ b/include/sfx2/tbxctrl.hxx @@ -183,13 +183,13 @@ public: unsigned short GetSlotId() const; void Dispatch( const OUString& aCommand, - css::uno::Sequence< css::beans::PropertyValue >& aArgs ); + css::uno::Sequence< css::beans::PropertyValue > const & aArgs ); static void Dispatch( const css::uno::Reference< css::frame::XDispatchProvider >& rDispatchProvider, const OUString& rCommand, - css::uno::Sequence< css::beans::PropertyValue >& aArgs ); + css::uno::Sequence< css::beans::PropertyValue > const & aArgs ); static SfxItemState GetItemState( const SfxPoolItem* pState ); - static SfxToolBoxControl* CreateControl( sal_uInt16 nSlotId, sal_uInt16 nTbxId, ToolBox *pBox, SfxModule *pMod ); + static SfxToolBoxControl* CreateControl( sal_uInt16 nSlotId, sal_uInt16 nTbxId, ToolBox *pBox, SfxModule const *pMod ); static void RegisterToolBoxControl( SfxModule*, const SfxTbxCtrlFactory&); }; diff --git a/include/sfx2/templatelocalview.hxx b/include/sfx2/templatelocalview.hxx index 1e4267c4c635..975aa40f0b75 100644 --- a/include/sfx2/templatelocalview.hxx +++ b/include/sfx2/templatelocalview.hxx @@ -91,7 +91,7 @@ public: virtual void showAllTemplates (); - void showRegion (TemplateContainerItem *pItem); + void showRegion (TemplateContainerItem const *pItem); void showRegion (const OUString &rName); diff --git a/include/sfx2/thumbnailview.hxx b/include/sfx2/thumbnailview.hxx index 421f2414398d..7eb123927225 100644 --- a/include/sfx2/thumbnailview.hxx +++ b/include/sfx2/thumbnailview.hxx @@ -262,7 +262,7 @@ protected: // Drawing item related functions, override them to make your own custom ones. - void DrawItem (ThumbnailViewItem *pItem); + void DrawItem (ThumbnailViewItem const *pItem); virtual void OnItemDblClicked (ThumbnailViewItem *pItem); diff --git a/include/sfx2/unoctitm.hxx b/include/sfx2/unoctitm.hxx index a0656e787c56..a9768ade13fa 100644 --- a/include/sfx2/unoctitm.hxx +++ b/include/sfx2/unoctitm.hxx @@ -116,7 +116,7 @@ class SfxDispatchController_Impl : public SfxControllerItem static void addParametersToArgs( const css::util::URL& aURL, css::uno::Sequence< css::beans::PropertyValue >& rArgs ); - static MapUnit GetCoreMetric( SfxItemPool& rPool, sal_uInt16 nSlot ); + static MapUnit GetCoreMetric( SfxItemPool const & rPool, sal_uInt16 nSlot ); void sendStatusChanged(const OUString& rURL, const css::frame::FeatureStateEvent& rEvent); @@ -130,7 +130,7 @@ public: static OUString getSlaveCommand( const css::util::URL& rURL ); - void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, SfxSlotServer* pServ ); + void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, SfxSlotServer const * pServ ); virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) override; void setMasterSlaveCommand( bool bSet ); /// @throws css::uno::RuntimeException diff --git a/include/sfx2/viewfrm.hxx b/include/sfx2/viewfrm.hxx index ba117f86b36e..a1f0c9384011 100644 --- a/include/sfx2/viewfrm.hxx +++ b/include/sfx2/viewfrm.hxx @@ -95,11 +95,11 @@ public: static void SetViewFrame( SfxViewFrame* ); - static SfxViewFrame* LoadHiddenDocument( SfxObjectShell& i_rDoc, SfxInterfaceId i_nViewId ); - static SfxViewFrame* LoadDocument( SfxObjectShell& i_rDoc, SfxInterfaceId i_nViewId ); - static SfxViewFrame* LoadDocumentIntoFrame( SfxObjectShell& i_rDoc, const SfxFrameItem* i_pFrameItem, SfxInterfaceId i_nViewId ); - static SfxViewFrame* LoadDocumentIntoFrame( SfxObjectShell& i_rDoc, const css::uno::Reference< css::frame::XFrame >& i_rFrameItem ); - static SfxViewFrame* DisplayNewDocument( SfxObjectShell& i_rDoc, const SfxRequest& i_rCreateDocRequest ); + static SfxViewFrame* LoadHiddenDocument( SfxObjectShell const & i_rDoc, SfxInterfaceId i_nViewId ); + static SfxViewFrame* LoadDocument( SfxObjectShell const & i_rDoc, SfxInterfaceId i_nViewId ); + static SfxViewFrame* LoadDocumentIntoFrame( SfxObjectShell const & i_rDoc, const SfxFrameItem* i_pFrameItem, SfxInterfaceId i_nViewId ); + static SfxViewFrame* LoadDocumentIntoFrame( SfxObjectShell const & i_rDoc, const css::uno::Reference< css::frame::XFrame >& i_rFrameItem ); + static SfxViewFrame* DisplayNewDocument( SfxObjectShell const & i_rDoc, const SfxRequest& i_rCreateDocRequest ); static SfxViewFrame* Current(); static SfxViewFrame* GetFirst( const SfxObjectShell* pDoc = nullptr, bool bOnlyVisible = true ); @@ -108,7 +108,7 @@ public: static SfxViewFrame* Get( const css::uno::Reference< css::frame::XController>& i_rController, const SfxObjectShell* i_pDoc ); void DoActivate(bool bMDI); - void DoDeactivate(bool bMDI, SfxViewFrame *pOld); + void DoDeactivate(bool bMDI, SfxViewFrame const *pOld); using SfxShell::GetDispatcher; SfxDispatcher* GetDispatcher() { return m_pDispatcher; } diff --git a/include/sfx2/viewsh.hxx b/include/sfx2/viewsh.hxx index c11df0fc735f..89bb429aa41b 100644 --- a/include/sfx2/viewsh.hxx +++ b/include/sfx2/viewsh.hxx @@ -295,14 +295,14 @@ public: SAL_DLLPRIVATE bool GlobalKeyInput_Impl( const KeyEvent &rKeyEvent ); SAL_DLLPRIVATE void NewIPClient_Impl( SfxInPlaceClient *pIPClient ); - SAL_DLLPRIVATE void IPClientGone_Impl( SfxInPlaceClient *pIPClient ); - SAL_DLLPRIVATE void ResetAllClients_Impl( SfxInPlaceClient *pIP ); + SAL_DLLPRIVATE void IPClientGone_Impl( SfxInPlaceClient const *pIPClient ); + SAL_DLLPRIVATE void ResetAllClients_Impl( SfxInPlaceClient const *pIP ); SAL_DLLPRIVATE void DiscardClients_Impl(); SAL_DLLPRIVATE void SetPrinter_Impl( VclPtr<SfxPrinter>& pNewPrinter ); SAL_DLLPRIVATE bool IsShowView_Impl() const; - SAL_DLLPRIVATE bool HandleNotifyEvent_Impl( NotifyEvent& rEvent ); + SAL_DLLPRIVATE bool HandleNotifyEvent_Impl( NotifyEvent const & rEvent ); SAL_DLLPRIVATE bool HasKeyListeners_Impl(); SAL_DLLPRIVATE bool HasMouseClickListeners_Impl(); @@ -312,7 +312,7 @@ public: SAL_DLLPRIVATE void ExecPrint_Impl(SfxRequest &); SAL_DLLPRIVATE void ExecMisc_Impl(SfxRequest &); SAL_DLLPRIVATE void GetState_Impl(SfxItemSet&); - SAL_DLLPRIVATE void CheckIPClient_Impl(SfxInPlaceClient*, const tools::Rectangle&); + SAL_DLLPRIVATE void CheckIPClient_Impl(SfxInPlaceClient const *, const tools::Rectangle&); SAL_DLLPRIVATE void PushSubShells_Impl( bool bPush=true ); SAL_DLLPRIVATE void PopSubShells_Impl() { PushSubShells_Impl( false ); } SAL_DLLPRIVATE bool ExecKey_Impl(const KeyEvent& aKey); |