diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/viewfac.hxx | 4 | ||||
-rw-r--r-- | include/sfx2/viewsh.hxx | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/sfx2/viewfac.hxx b/include/sfx2/viewfac.hxx index efd511ea2b3d..c09791216f0e 100644 --- a/include/sfx2/viewfac.hxx +++ b/include/sfx2/viewfac.hxx @@ -27,7 +27,7 @@ class SfxViewFrame; class SfxViewShell; -typedef SfxViewShell* (*SfxViewCtor)(SfxViewFrame*, SfxViewShell*); +typedef SfxViewShell* (*SfxViewCtor)(SfxViewFrame&, SfxViewShell*); // CLASS ----------------------------------------------------------------- class SFX2_DLLPUBLIC SfxViewFactory @@ -36,7 +36,7 @@ public: SfxViewFactory( SfxViewCtor fnC, SfxInterfaceId nOrdinal, const char* asciiViewName ); - SfxViewShell* CreateInstance(SfxViewFrame *pViewFrame, SfxViewShell *pOldSh); + SfxViewShell* CreateInstance(SfxViewFrame& rViewFrame, SfxViewShell *pOldSh); SfxInterfaceId GetOrdinal() const { return nOrd; } /// returns a legacy view name. This is "view" with an appended ordinal/ID. diff --git a/include/sfx2/viewsh.hxx b/include/sfx2/viewsh.hxx index a948f0f5baea..1e70f8301bda 100644 --- a/include/sfx2/viewsh.hxx +++ b/include/sfx2/viewsh.hxx @@ -128,15 +128,15 @@ class SfxViewFactory; private: \ static SfxViewFactory *s_pFactory; \ public: \ - static SfxViewShell *CreateInstance(SfxViewFrame *pFrame, SfxViewShell *pOldView); \ + static SfxViewShell *CreateInstance(SfxViewFrame& rFrame, SfxViewShell *pOldView); \ static void RegisterFactory( SfxInterfaceId nPrio ); \ static SfxViewFactory*Factory() { return s_pFactory; } \ static void InitFactory() #define SFX_IMPL_NAMED_VIEWFACTORY(Class, AsciiViewName) \ SfxViewFactory* Class::s_pFactory; \ - SfxViewShell* Class::CreateInstance(SfxViewFrame *pFrame, SfxViewShell *pOldView) \ - { return new Class(pFrame, pOldView); } \ + SfxViewShell* Class::CreateInstance(SfxViewFrame& rFrame, SfxViewShell *pOldView) \ + { return new Class(rFrame, pOldView); } \ void Class::RegisterFactory( SfxInterfaceId nPrio ) \ { \ s_pFactory = new SfxViewFactory(&CreateInstance,nPrio,AsciiViewName);\ @@ -211,7 +211,7 @@ private: public: - SfxViewShell( SfxViewFrame *pFrame, SfxViewShellFlags nFlags ); + SfxViewShell( SfxViewFrame& rFrame, SfxViewShellFlags nFlags ); virtual ~SfxViewShell() override; SfxInPlaceClient* GetIPClient() const; |