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

@@ -3121,22 +3121,30 @@ typedef const void* WXWidget;
#include "wx/features.h"
/* --------------------------------------------------------------------------- */
/* macro to define a class without copy ctor nor assignment operator */
/* macros to define a class without copy ctor nor assignment operator */
/* --------------------------------------------------------------------------- */
#define DECLARE_NO_COPY_CLASS(classname) \
#define wxDECLARE_NO_COPY_CLASS(classname) \
private: \
classname(const classname&); \
classname& operator=(const classname&);
classname& operator=(const classname&)
#define DECLARE_NO_COPY_TEMPLATE_CLASS(classname, arg) \
private: \
classname(const classname<arg>&); \
classname& operator=(const classname<arg>&);
#define wxDECLARE_NO_COPY_TEMPLATE_CLASS(classname, arg) \
private: \
classname(const classname<arg>&); \
classname& operator=(const classname<arg>&)
#define DECLARE_NO_ASSIGN_CLASS(classname) \
#define wxDECLARE_NO_ASSIGN_CLASS(classname) \
private: \
classname& operator=(const classname&);
classname& operator=(const classname&)
// deprecated variants _not_ requiring a semicolon after them
#define DECLARE_NO_COPY_CLASS(classname) \
wxDECLARE_NO_COPY_CLASS(classname);
#define DECLARE_NO_COPY_TEMPLATE_CLASS(classname, arg) \
wxDECLARE_NO_COPY_TEMPLATE_CLASS(classname, arg);
#define DECLARE_NO_ASSIGN_CLASS(classname) \
wxDECLARE_NO_ASSIGN_CLASS(classname);
/* --------------------------------------------------------------------------- */
/* If a manifest is being automatically generated, add common controls 6 to it */