summaryrefslogtreecommitdiff
path: root/idl/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-07-06 23:10:38 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-07-07 07:48:12 +0200
commite294fa9283071cb2816b6d8c759ed76ee552410e (patch)
tree10fc4d353de9409d769e74675536b8be4acf7c03 /idl/inc
parentaf1be90e528ceeca70ee8f266fc6f6d8682b2c0d (diff)
Replace GetAppData(SHL_IDL) with an rtl::Static
Change-Id: Ia7a75c4686734aa811006858343666d2edfde8a1
Diffstat (limited to 'idl/inc')
-rw-r--r--idl/inc/globals.hxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/idl/inc/globals.hxx b/idl/inc/globals.hxx
index 3569d975018f..014aac7cdbc9 100644
--- a/idl/inc/globals.hxx
+++ b/idl/inc/globals.hxx
@@ -125,13 +125,12 @@ public:
~IdlDll();
};
-IdlDll * GetIdlApp();
-#define IDLAPP GetIdlApp()
+IdlDll & GetIdlApp();
#define SV_GLOBAL_HASH_ACCESS( Name ) \
- if( !IDLAPP->pGlobalNames ) \
- IDLAPP->pGlobalNames = new SvGlobalHashNames(); \
- return IDLAPP->pGlobalNames->MM_##Name;
+ if( !GetIdlApp().pGlobalNames ) \
+ GetIdlApp().pGlobalNames = new SvGlobalHashNames(); \
+ return GetIdlApp().pGlobalNames->MM_##Name;
#define HASH_INLINE( Name ) \
inline SvStringHashEntry * SvHash_##Name() { SV_GLOBAL_HASH_ACCESS( Name ) }