summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-30 16:42:28 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-30 16:42:43 +0200
commit8a0df1b7e50ee4e39be0242ca245627b4eedd7e5 (patch)
treee96d6beb96cff4ab222d6acb9705280a77bb4a20 /include
parentf8e34ea78a3159b3bf717353a3fc7d62e7fecd57 (diff)
Clean up OutputDevice and derived classes noncopyable-ness
Change-Id: Id29e52c94a89cac20e29ae0a1f0b9f90ffdfcf09
Diffstat (limited to 'include')
-rw-r--r--include/vcl/outdev.hxx9
-rw-r--r--include/vcl/syswin.hxx7
-rw-r--r--include/vcl/window.hxx8
3 files changed, 2 insertions, 22 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx
index cefffe2815c5..199ca08392c1 100644
--- a/include/vcl/outdev.hxx
+++ b/include/vcl/outdev.hxx
@@ -42,6 +42,7 @@
#include <unotools/fontdefs.hxx>
+#include <boost/noncopyable.hpp>
#include <boost/scoped_ptr.hpp>
#ifdef check
# //some problem with MacOSX and a check define
@@ -244,7 +245,7 @@ extern const sal_uLong nVCLBLut[ 6 ];
extern const sal_uLong nVCLDitherLut[ 256 ];
extern const sal_uLong nVCLLut[ 256 ];
-class VCL_DLLPUBLIC OutputDevice
+class VCL_DLLPUBLIC OutputDevice: private boost::noncopyable
{
friend class Application;
friend class Bitmap;
@@ -350,15 +351,9 @@ private:
protected:
OutputDevice();
-private:
- SAL_DLLPRIVATE OutputDevice( const OutputDevice& rOutDev );
-
public:
virtual ~OutputDevice();
-private:
- SAL_DLLPRIVATE OutputDevice& operator =( const OutputDevice& rOutDev );
-
public:
/** Get the graphic context that the output device uses to draw on.
diff --git a/include/vcl/syswin.hxx b/include/vcl/syswin.hxx
index 098f49e34d22..f5a1eca23669 100644
--- a/include/vcl/syswin.hxx
+++ b/include/vcl/syswin.hxx
@@ -158,13 +158,6 @@ public:
SAL_DLLPRIVATE bool ImplIsInTaskPaneList( Window* pWin );
private:
- // Default construction is forbidden and not implemented.
- SystemWindow();
-
- // Copy assignment is forbidden and not implemented.
- SystemWindow (const SystemWindow &);
- SystemWindow & operator= (const SystemWindow &);
-
SAL_DLLPRIVATE void ImplMoveToScreen( long& io_rX, long& io_rY, long i_nWidth, long i_nHeight, Window* i_pConfigureWin );
protected:
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx
index ddf010d15cb2..3cf1032028d1 100644
--- a/include/vcl/window.hxx
+++ b/include/vcl/window.hxx
@@ -619,14 +619,6 @@ private:
public:
virtual Region GetActiveClipRegion() const SAL_OVERRIDE;
-private:
- // Default construction is forbidden and not implemented.
- SAL_DLLPRIVATE Window();
-
- // Copy assignment is forbidden and not implemented.
- SAL_DLLPRIVATE Window (const Window &);
- SAL_DLLPRIVATE Window & operator= (const Window &);
-
protected:
// Single argument ctors shall be explicit.
explicit Window( WindowType nType );