add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-02-08 11:45:59 +00:00
parent 4800ca79ac
commit c0c133e13b
424 changed files with 715 additions and 704 deletions

View File

@@ -398,7 +398,7 @@ public:
private:
HDC m_hdc;
DECLARE_NO_COPY_CLASS(ScreenHDC)
wxDECLARE_NO_COPY_CLASS(ScreenHDC);
};
// the same as ScreenHDC but for window DCs
@@ -414,7 +414,7 @@ private:
HWND m_hwnd;
HDC m_hdc;
DECLARE_NO_COPY_CLASS(WindowHDC)
wxDECLARE_NO_COPY_CLASS(WindowHDC);
};
// the same as ScreenHDC but for memory DCs: creates the HDC compatible with
@@ -430,7 +430,7 @@ public:
private:
HDC m_hdc;
DECLARE_NO_COPY_CLASS(MemoryHDC)
wxDECLARE_NO_COPY_CLASS(MemoryHDC);
};
// a class which selects a GDI object into a DC in its ctor and deselects in
@@ -462,7 +462,7 @@ private:
HDC m_hdc;
HGDIOBJ m_hgdiobj;
DECLARE_NO_COPY_CLASS(SelectInHDC)
wxDECLARE_NO_COPY_CLASS(SelectInHDC);
};
// a class which cleans up any GDI object
@@ -579,7 +579,7 @@ public:
private:
HDC m_hdc;
DECLARE_NO_COPY_CLASS(HDCClipper)
wxDECLARE_NO_COPY_CLASS(HDCClipper);
};
// set the given map mode for the life time of this object
@@ -610,7 +610,7 @@ private:
HDC m_hdc;
int m_modeOld;
DECLARE_NO_COPY_CLASS(HDCMapModeChanger)
wxDECLARE_NO_COPY_CLASS(HDCMapModeChanger);
};
#define wxCHANGE_HDC_MAP_MODE(hdc, mm) \
@@ -652,7 +652,7 @@ public:
private:
HGLOBAL m_hGlobal;
DECLARE_NO_COPY_CLASS(GlobalPtr)
wxDECLARE_NO_COPY_CLASS(GlobalPtr);
};
// when working with global pointers (which is unfortunately still necessary
@@ -710,7 +710,7 @@ private:
HGLOBAL m_hGlobal;
void *m_ptr;
DECLARE_NO_COPY_CLASS(GlobalPtrLock)
wxDECLARE_NO_COPY_CLASS(GlobalPtrLock);
};
// register the class when it is first needed and unregister it in dtor