From ca44a024da3b95f46c3a8422b29314defd4ae64b Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 28 Jan 2010 04:50:27 +0000 Subject: Avoiding warnings from cppcheck. Mostly removing bodies of private copy constructors and operator=. Also ensuring initialisation for some fields, reducing scope where possible, and passing by const reference. --- win32/PlatWin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'win32/PlatWin.cxx') diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 8ff27011c..71a968541 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -372,8 +372,8 @@ class SurfaceImpl : public Surface { void SetFont(Font &font_); // Private so SurfaceImpl objects can not be copied - SurfaceImpl(const SurfaceImpl &) : Surface() {} - SurfaceImpl &operator=(const SurfaceImpl &) { return *this; } + SurfaceImpl(const SurfaceImpl &); + SurfaceImpl &operator=(const SurfaceImpl &); public: SurfaceImpl(); virtual ~SurfaceImpl(); -- cgit v1.2.3