summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-04-23 13:47:02 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-04-23 14:45:52 +0100
commite774a6ffd01d3228fab9098fa383573aa153a603 (patch)
tree57c893844168612264def0cfb21ab465ec33f2a8 /include
parent3b7788908a622b8e2043bd64bd0e36ee43fd733c (diff)
Use shared_ptr for OpenGLPrograms, and hide its copy constructor.
Change-Id: Ia1352105acef1ededaf876a224ebc277121d6942
Diffstat (limited to 'include')
-rw-r--r--include/vcl/opengl/OpenGLContext.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/opengl/OpenGLContext.hxx b/include/vcl/opengl/OpenGLContext.hxx
index c8f2cb4bfbe7..d733560f2a2b 100644
--- a/include/vcl/opengl/OpenGLContext.hxx
+++ b/include/vcl/opengl/OpenGLContext.hxx
@@ -275,7 +275,7 @@ private:
OUString fragmentShader;
OString preamble;
};
- boost::ptr_map<ProgramKey, OpenGLProgram> maPrograms;
+ std::map<ProgramKey, boost::shared_ptr<OpenGLProgram> > maPrograms;
OpenGLProgram* mpCurrentProgram;
#ifdef DBG_UTIL
std::set<SalGraphicsImpl*> maParents;