summaryrefslogtreecommitdiff
path: root/canvas/source/directx/dx_9rm.cxx
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 /canvas/source/directx/dx_9rm.cxx
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 'canvas/source/directx/dx_9rm.cxx')
-rw-r--r--canvas/source/directx/dx_9rm.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/canvas/source/directx/dx_9rm.cxx b/canvas/source/directx/dx_9rm.cxx
index 7f058a2a45bc..511e90e9d6e2 100644
--- a/canvas/source/directx/dx_9rm.cxx
+++ b/canvas/source/directx/dx_9rm.cxx
@@ -20,6 +20,7 @@
#include <sal/config.h>
#include <sal/log.hxx>
+#include <memory>
#include <string.h>
#include <basegfx/numeric/ftools.hxx>
@@ -1205,7 +1206,7 @@ namespace dxcanvas
IDXRenderModuleSharedPtr createRenderModule( const vcl::Window& rParent )
{
- return IDXRenderModuleSharedPtr( new DXRenderModule(rParent) );
+ return std::make_shared<DXRenderModule>(rParent);
}
}