aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r--win32/PlatWin.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index fbb5ea093..666c962cf 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -249,6 +249,10 @@ class SurfaceImpl : public Surface {
HPALETTE paletteOld;
void BrushColor(ColourAllocated back);
void SetFont(Font &font_);
+
+ // Private so SurfaceImpl objects can not be copied
+ SurfaceImpl(const SurfaceImpl &) : Surface() {}
+ SurfaceImpl &operator=(const SurfaceImpl &) { return *this; }
public:
SurfaceImpl();
virtual ~SurfaceImpl();