diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-12-14 18:57:43 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:47:56 +0300 |
commit | f151f3a004388cf1c898c0568612bc2793b1dbd1 (patch) | |
tree | 777a5e917acd6bd1ba99eb22b60273f8dba76a64 /map/qgl_render_context.cpp | |
parent | 0f376a46e576bdfd90f85081e343cce2561b1c37 (diff) |
returning raw pointer instead of shared_ptr from RenderContext::createShared, allowing clients to choose lifetime handling policy by themselves.
Diffstat (limited to 'map/qgl_render_context.cpp')
-rw-r--r-- | map/qgl_render_context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/map/qgl_render_context.cpp b/map/qgl_render_context.cpp index f898e5e5cf..f15f7c42e4 100644 --- a/map/qgl_render_context.cpp +++ b/map/qgl_render_context.cpp @@ -31,9 +31,9 @@ namespace qt m_context->makeCurrent(); } - shared_ptr<graphics::RenderContext> RenderContext::createShared() + graphics::RenderContext * RenderContext::createShared() { - shared_ptr<graphics::gl::RenderContext> res(new RenderContext(this)); + graphics::gl::RenderContext * res = new RenderContext(this); res->setResourceManager(resourceManager()); return res; } |