diff options
Diffstat (limited to 'framework/source/uiconfiguration/imagemanagerimpl.cxx')
-rw-r--r-- | framework/source/uiconfiguration/imagemanagerimpl.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/framework/source/uiconfiguration/imagemanagerimpl.cxx b/framework/source/uiconfiguration/imagemanagerimpl.cxx index 04ec4db065e1..f479063b4bfc 100644 --- a/framework/source/uiconfiguration/imagemanagerimpl.cxx +++ b/framework/source/uiconfiguration/imagemanagerimpl.cxx @@ -44,7 +44,6 @@ #include <unotools/ucbstreamhelper.hxx> #include <vcl/filter/PngImageReader.hxx> #include <vcl/pngwrite.hxx> -#include <rtl/instance.hxx> #include <memory> using ::com::sun::star::uno::Sequence; @@ -86,15 +85,10 @@ namespace framework static GlobalImageList* pGlobalImageList = nullptr; -namespace -{ - class theGlobalImageListMutex - : public rtl::Static<osl::Mutex, theGlobalImageListMutex> {}; -} - static osl::Mutex& getGlobalImageListMutex() { - return theGlobalImageListMutex::get(); + static osl::Mutex mutex; + return mutex; } static GlobalImageList* getGlobalImageList( const uno::Reference< uno::XComponentContext >& rxContext ) |