From e7dbef922a2fc73469f12c520bcc1af54fe038fb Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 23 Mar 2023 11:11:48 +0200 Subject: rtl::Static to thread-safe-static Change-Id: Ife02e6d2be3ebfbb08522ab0183ef4aa31a99e19 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149415 Tested-by: Jenkins Reviewed-by: Noel Grandin --- slideshow/source/engine/opengl/TransitionerImpl.cxx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'slideshow/source/engine/opengl') diff --git a/slideshow/source/engine/opengl/TransitionerImpl.cxx b/slideshow/source/engine/opengl/TransitionerImpl.cxx index 4aab29426013..224d8cdcd808 100644 --- a/slideshow/source/engine/opengl/TransitionerImpl.cxx +++ b/slideshow/source/engine/opengl/TransitionerImpl.cxx @@ -788,18 +788,11 @@ public: } }; -struct OGLColorSpaceHolder : public rtl::StaticWithInit, OGLColorSpaceHolder> -{ - uno::Reference operator()() - { - return new OGLColorSpace(); - } -}; - uno::Reference const & getOGLColorSpace() { - return OGLColorSpaceHolder::get(); + static uno::Reference theSpace = new OGLColorSpace(); + return theSpace; } void buildMipmaps( -- cgit