summaryrefslogtreecommitdiff
path: root/vcl/qt5
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-24 13:22:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-24 19:31:14 +0100
commit3bbc0cf67cd5aa0ec5a1997794d21a87830bc618 (patch)
treebd912f9c91d8f96969377168fab9e5c5cc59a895 /vcl/qt5
parent7589e8413411aa4e0bf437ec0a7080c577a9c1d9 (diff)
loplugin:makeshared in svgio..writerperfect
Change-Id: I0f8de0f78c7a8fb78d47ee5dfed09019b4eb5288 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87357 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/qt5')
-rw-r--r--vcl/qt5/Qt5Menu.cxx2
-rw-r--r--vcl/qt5/Qt5SvpGraphics.cxx4
-rw-r--r--vcl/qt5/Qt5SvpSurface.cxx4
3 files changed, 5 insertions, 5 deletions
diff --git a/vcl/qt5/Qt5Menu.cxx b/vcl/qt5/Qt5Menu.cxx
index e2ccd1ffc6af..d66dc72fd916 100644
--- a/vcl/qt5/Qt5Menu.cxx
+++ b/vcl/qt5/Qt5Menu.cxx
@@ -235,7 +235,7 @@ void Qt5Menu::ReinitializeActionGroup(unsigned nPos)
}
else
{
- pCurrentItem->mpActionGroup.reset(new QActionGroup(nullptr));
+ pCurrentItem->mpActionGroup = std::make_shared<QActionGroup>(nullptr);
pCurrentItem->mpActionGroup->setExclusive(true);
}
}
diff --git a/vcl/qt5/Qt5SvpGraphics.cxx b/vcl/qt5/Qt5SvpGraphics.cxx
index fc58bbcfcc15..55de70b2a186 100644
--- a/vcl/qt5/Qt5SvpGraphics.cxx
+++ b/vcl/qt5/Qt5SvpGraphics.cxx
@@ -50,13 +50,13 @@ bool Qt5SvpGraphics::SupportsCairo() const { return true; }
cairo::SurfaceSharedPtr
Qt5SvpGraphics::CreateSurface(const cairo::CairoSurfaceSharedPtr& rSurface) const
{
- return cairo::SurfaceSharedPtr(new cairo::Qt5SvpSurface(rSurface));
+ return std::make_shared<cairo::Qt5SvpSurface>(rSurface);
}
cairo::SurfaceSharedPtr Qt5SvpGraphics::CreateSurface(const OutputDevice& /*rRefDevice*/, int x,
int y, int width, int height) const
{
- return cairo::SurfaceSharedPtr(new cairo::Qt5SvpSurface(this, x, y, width, height));
+ return std::make_shared<cairo::Qt5SvpSurface>(this, x, y, width, height);
}
#endif
diff --git a/vcl/qt5/Qt5SvpSurface.cxx b/vcl/qt5/Qt5SvpSurface.cxx
index 21e0ca03b5b2..4bab429971ba 100644
--- a/vcl/qt5/Qt5SvpSurface.cxx
+++ b/vcl/qt5/Qt5SvpSurface.cxx
@@ -62,10 +62,10 @@ CairoSharedPtr Qt5SvpSurface::getCairo() const
SurfaceSharedPtr Qt5SvpSurface::getSimilar(int cairo_content_type, int width, int height) const
{
- return SurfaceSharedPtr(new Qt5SvpSurface(CairoSurfaceSharedPtr(
+ return std::make_shared<Qt5SvpSurface>(CairoSurfaceSharedPtr(
cairo_surface_create_similar(
m_pSurface.get(), static_cast<cairo_content_t>(cairo_content_type), width, height),
- &cairo_surface_destroy)));
+ &cairo_surface_destroy));
}
void Qt5SvpSurface::flush() const