summaryrefslogtreecommitdiff
path: root/canvas/source/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-23 15:17:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-24 07:18:28 +0100
commit8d23f9c2c1e0479a95cb44a09066740213b0f99a (patch)
tree46034a164cbfd4d5a17f8eaec722e89fdfd172ee /canvas/source/tools
parent8dd247044f976d93e13370738418fcd2ac167e9c (diff)
loplugin:makeshared in basctl..canvas
Change-Id: I1461da594db222abbaeccfb636194b9790f5dbe8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87271 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas/source/tools')
-rw-r--r--canvas/source/tools/page.cxx2
-rw-r--r--canvas/source/tools/pagemanager.cxx4
-rw-r--r--canvas/source/tools/surfaceproxymanager.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/canvas/source/tools/page.cxx b/canvas/source/tools/page.cxx
index 78f9cd3aa671..3537fa0b6873 100644
--- a/canvas/source/tools/page.cxx
+++ b/canvas/source/tools/page.cxx
@@ -48,7 +48,7 @@ namespace canvas
SurfaceRect rect(rSize);
if(insert(rect))
{
- FragmentSharedPtr pFragment(new PageFragment(rect,this));
+ FragmentSharedPtr pFragment = std::make_shared<PageFragment>(rect,this);
mpFragments.push_back(pFragment);
return pFragment;
}
diff --git a/canvas/source/tools/pagemanager.cxx b/canvas/source/tools/pagemanager.cxx
index 3d08eff21593..c1e874ca498a 100644
--- a/canvas/source/tools/pagemanager.cxx
+++ b/canvas/source/tools/pagemanager.cxx
@@ -42,7 +42,7 @@ namespace canvas
}
// otherwise try to create a new page and allocate space there...
- PageSharedPtr pPage(new Page(mpRenderModule));
+ PageSharedPtr pPage = std::make_shared<Page>(mpRenderModule);
if(pPage->isValid())
{
maPages.push_back(pPage);
@@ -56,7 +56,7 @@ namespace canvas
// of videomemory], and all other pages could not take
// the new request. we decide to create a 'naked' fragment
// which will receive its location later.
- FragmentSharedPtr pFragment(new PageFragment(rSize));
+ FragmentSharedPtr pFragment = std::make_shared<PageFragment>(rSize);
maFragments.push_back(pFragment);
return pFragment;
}
diff --git a/canvas/source/tools/surfaceproxymanager.cxx b/canvas/source/tools/surfaceproxymanager.cxx
index 126e1bd8c2ad..87aa953cf213 100644
--- a/canvas/source/tools/surfaceproxymanager.cxx
+++ b/canvas/source/tools/surfaceproxymanager.cxx
@@ -33,7 +33,7 @@ namespace canvas
public:
explicit SurfaceProxyManager( const std::shared_ptr<IRenderModule>& rRenderModule ) :
- mpPageManager( new PageManager(rRenderModule) )
+ mpPageManager( std::make_shared<PageManager>(rRenderModule) )
{
}