summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/opengl/TransitionerImpl.cxx11
1 files changed, 2 insertions, 9 deletions
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<uno::Reference<rendering::XIntegerBitmapColorSpace>, OGLColorSpaceHolder>
-{
- uno::Reference<rendering::XIntegerBitmapColorSpace> operator()()
- {
- return new OGLColorSpace();
- }
-};
-
uno::Reference<rendering::XIntegerBitmapColorSpace> const &
getOGLColorSpace()
{
- return OGLColorSpaceHolder::get();
+ static uno::Reference<rendering::XIntegerBitmapColorSpace> theSpace = new OGLColorSpace();
+ return theSpace;
}
void buildMipmaps(