diff options
author | nyamatongwe <unknown> | 2010-01-28 04:50:27 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-01-28 04:50:27 +0000 |
commit | ca44a024da3b95f46c3a8422b29314defd4ae64b (patch) | |
tree | 35d98352a6038f75dada3cd0620bd89eb35fb90d /win32 | |
parent | 205e394a6bf7f3e7636af0715103c28422d7a6aa (diff) | |
download | scintilla-mirror-ca44a024da3b95f46c3a8422b29314defd4ae64b.tar.gz |
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.
Diffstat (limited to 'win32')
-rw-r--r-- | win32/PlatWin.cxx | 4 | ||||
-rw-r--r-- | win32/ScintillaWin.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
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(); diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 1937458d4..47ff0f41a 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -176,9 +176,9 @@ class ScintillaWin : static HINSTANCE hInstance; ScintillaWin(HWND hwnd); - ScintillaWin(const ScintillaWin &) : ScintillaBase() {} + ScintillaWin(const ScintillaWin &); virtual ~ScintillaWin(); - ScintillaWin &operator=(const ScintillaWin &) { return *this; } + ScintillaWin &operator=(const ScintillaWin &); virtual void Initialise(); virtual void Finalise(); |