diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/app/swdll.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sw/source/uibase/app/swdll.cxx b/sw/source/uibase/app/swdll.cxx index ad9a3bf3c487..c4564a4741f3 100644 --- a/sw/source/uibase/app/swdll.cxx +++ b/sw/source/uibase/app/swdll.cxx @@ -59,7 +59,11 @@ namespace } }; - struct theSwDLLInstance : public rtl::Static<SwDLLInstance, theSwDLLInstance> {}; + SwDLLInstance& theSwDLLInstance() + { + static SwDLLInstance aInstance; + return aInstance; + } } namespace SwGlobals @@ -67,12 +71,12 @@ namespace SwGlobals void ensure() { // coverity[side_effect_free : FALSE] - not actually side-effect-free - theSwDLLInstance::get(); + theSwDLLInstance(); } sw::Filters & getFilters() { - return theSwDLLInstance::get()->getFilters(); + return theSwDLLInstance()->getFilters(); } } |