From e294fa9283071cb2816b6d8c759ed76ee552410e Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 6 Jul 2015 23:10:38 +0200 Subject: Replace GetAppData(SHL_IDL) with an rtl::Static Change-Id: Ia7a75c4686734aa811006858343666d2edfde8a1 --- idl/inc/globals.hxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'idl/inc') 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 ) } -- cgit