summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-02-03 16:26:38 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-02-03 23:38:37 +0100
commit6317e10f5b9c347ceb391e049e6d0f3c542f93c4 (patch)
tree5552a3ccc88bfbdf932735292a008271ab4360fa /vcl
parenta334f77792dfff92e3c97f7f61f59d01fc9338cf (diff)
loplugin:makeshared (clang-cl)
Change-Id: I0c786bf401e514f9d86e33d8ab6366fc5dd1f425 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87887 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/win/gdi/gdiimpl.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/vcl/win/gdi/gdiimpl.cxx b/vcl/win/gdi/gdiimpl.cxx
index 05c1037bcbe1..875f4924fbf4 100644
--- a/vcl/win/gdi/gdiimpl.cxx
+++ b/vcl/win/gdi/gdiimpl.cxx
@@ -17,6 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/config.h>
+
+#include <memory>
+
#include <svsys.h>
#include "gdiimpl.hxx"
@@ -2108,7 +2112,7 @@ bool WinSalGraphicsImpl::drawPolyPolygon(
// (at least for now...)
// create data
- pGraphicsPath.reset(new Gdiplus::GraphicsPath());
+ pGraphicsPath = std::make_shared<Gdiplus::GraphicsPath>();
for(sal_uInt32 a(0); a < nCount; a++)
{
@@ -2308,7 +2312,7 @@ bool WinSalGraphicsImpl::drawPolyLine(
else
{
// fill data of buffered data
- pGraphicsPath.reset(new Gdiplus::GraphicsPath());
+ pGraphicsPath = std::make_shared<Gdiplus::GraphicsPath>();
impAddB2DPolygonToGDIPlusGraphicsPathReal(
*pGraphicsPath,