diff options
| author | Melvin Keskin <melvo@olomono.de> | 2022-09-13 13:59:54 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2022-09-13 22:40:00 +0200 |
| commit | 5a9f969f4291704a6cac57e5fcfc85df5451bad2 (patch) | |
| tree | abe81cd21e96aea3183f3f01132e45af614800bd /src/base | |
| parent | a8cba050ceffd57d862925bf51fea0d01a3e552b (diff) | |
| download | qxmpp-5a9f969f4291704a6cac57e5fcfc85df5451bad2.tar.gz | |
Global: Add comments for rule of six macros
Diffstat (limited to 'src/base')
| -rw-r--r-- | src/base/QXmppGlobal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/base/QXmppGlobal.h b/src/base/QXmppGlobal.h index 89698d4f..a9a1b962 100644 --- a/src/base/QXmppGlobal.h +++ b/src/base/QXmppGlobal.h @@ -40,6 +40,8 @@ #define QT_WARNING_DISABLE_DEPRECATED #endif +// Adds constructor and operator declarations to a ".h" file corresponding to the rule of six. +// A default constructor has to be declared manually. #define QXMPP_PRIVATE_DECLARE_RULE_OF_SIX(name) \ name(const name &); \ name(name &&); \ @@ -47,6 +49,8 @@ name &operator=(const name &); \ name &operator=(name &&); +// Adds constructor and operator definitions to a ".cpp" file corresponding to the rule of six. +// A default constructor has to be defined manually. #define QXMPP_PRIVATE_DEFINE_RULE_OF_SIX(name) \ name::name(const name &) = default; \ name::name(name &&) = default; \ |
