From 8dba30fcf6eb7e7dcd7b13436cb92f828109d933 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 12 Apr 2013 21:02:36 +0300 Subject: Get rid of GetAppData(SHL_IDE) It seems to be used only locally in basctl so there is really no reason for it. Change-Id: I9ad0a67621e190257e028fd3689f692e639eaf56 --- basctl/source/basicide/basicmod.hxx | 4 ++-- basctl/source/basicide/iderdll.cxx | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/basicmod.hxx b/basctl/source/basicide/basicmod.hxx index 8cb661304468..9d6962f08252 100644 --- a/basctl/source/basicide/basicmod.hxx +++ b/basctl/source/basicide/basicmod.hxx @@ -22,19 +22,19 @@ #define BASCTL_BASICMOD_HXX #include -#include namespace basctl { class Module : public SfxModule { + static Module* mpModule; public: Module ( ResMgr *pMgr, SfxObjectFactory *pObjFact) : SfxModule( pMgr, false, pObjFact, NULL ) { } public: - static Module*& Get () { return *reinterpret_cast(GetAppData(SHL_IDE)); } + static Module*& Get () { return mpModule; } }; } // namespace basctl diff --git a/basctl/source/basicide/iderdll.cxx b/basctl/source/basicide/iderdll.cxx index 82a311d7eb8a..07351ca0cbe7 100644 --- a/basctl/source/basicide/iderdll.cxx +++ b/basctl/source/basicide/iderdll.cxx @@ -50,6 +50,8 @@ namespace basctl using namespace ::com::sun::star; using namespace ::com::sun::star::uno; +Module* Module::mpModule; + namespace { -- cgit