summaryrefslogtreecommitdiff
path: root/canvas/source/tools/surfaceproxymanager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'canvas/source/tools/surfaceproxymanager.cxx')
-rw-r--r--canvas/source/tools/surfaceproxymanager.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/canvas/source/tools/surfaceproxymanager.cxx b/canvas/source/tools/surfaceproxymanager.cxx
index ef70b824e9e0..126e1bd8c2ad 100644
--- a/canvas/source/tools/surfaceproxymanager.cxx
+++ b/canvas/source/tools/surfaceproxymanager.cxx
@@ -55,7 +55,7 @@ namespace canvas
// not much to do for now, simply allocate a new surface
// proxy from our internal pool and initialize this thing
// properly. we *don't* create a hardware surface for now.
- return std::shared_ptr<ISurfaceProxy>(new SurfaceProxy(pBuffer,mpPageManager));
+ return std::make_shared<SurfaceProxy>(pBuffer,mpPageManager);
}
private:
@@ -66,9 +66,7 @@ namespace canvas
std::shared_ptr<ISurfaceProxyManager> createSurfaceProxyManager( const std::shared_ptr<IRenderModule>& rRenderModule )
{
- return std::shared_ptr<ISurfaceProxyManager>(
- new SurfaceProxyManager(
- rRenderModule));
+ return std::make_shared<SurfaceProxyManager>(rRenderModule);
}
}