summaryrefslogtreecommitdiff
path: root/canvas/source/directx/dx_graphicsprovider.hxx
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-04-06 18:32:13 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-04-07 07:28:35 +0000
commitf9b200ce54cd67ddc04747f9676568a86e14d864 (patch)
tree1211402d5a9c5737f0d4979d9719ac068e092eba /canvas/source/directx/dx_graphicsprovider.hxx
parent04216006ee038232067bcf74d67b14e8918063f2 (diff)
tdf#94306 replace boost::noncopyable in canvas
Replace with C++11 delete copy-constructur and copy-assignment. Some helper classes had boost/noncopyable.hpp included but didn't use it. Change-Id: I339f2c413a944649d9d63c046e8b7f7ee6e46791 Reviewed-on: https://gerrit.libreoffice.org/23866 Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'canvas/source/directx/dx_graphicsprovider.hxx')
-rw-r--r--canvas/source/directx/dx_graphicsprovider.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/canvas/source/directx/dx_graphicsprovider.hxx b/canvas/source/directx/dx_graphicsprovider.hxx
index 4e8e4272d4a0..22e6577d4f15 100644
--- a/canvas/source/directx/dx_graphicsprovider.hxx
+++ b/canvas/source/directx/dx_graphicsprovider.hxx
@@ -21,7 +21,6 @@
#define INCLUDED_CANVAS_SOURCE_DIRECTX_DX_GRAPHICSPROVIDER_HXX
#include "dx_winstuff.hxx"
-#include <boost/noncopyable.hpp>
#include <memory>
namespace Gdiplus{ class Graphics; }
@@ -30,10 +29,14 @@ namespace dxcanvas
{
/** Provider of a Gdiplus::Graphics. Interface
*/
- class GraphicsProvider : private ::boost::noncopyable
+ class GraphicsProvider
{
public:
+ GraphicsProvider() = default;
virtual ~GraphicsProvider() {}
+ /// make noncopyable
+ GraphicsProvider(const GraphicsProvider&) = delete;
+ const GraphicsProvider operator=(const GraphicsProvider) = delete;
virtual GraphicsSharedPtr getGraphics() = 0;
};