summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Elements')
-rw-r--r--Swiften/Elements/AuthFailure.h8
-rw-r--r--Swiften/Elements/ComponentHandshake.h3
2 files changed, 5 insertions, 6 deletions
diff --git a/Swiften/Elements/AuthFailure.h b/Swiften/Elements/AuthFailure.h
index ff1468e..348a19b 100644
--- a/Swiften/Elements/AuthFailure.h
+++ b/Swiften/Elements/AuthFailure.h
@@ -4,16 +4,14 @@
* See Documentation/Licenses/GPLv3.txt for more information.
*/
-#ifndef SWIFTEN_AuthFailure_H
-#define SWIFTEN_AuthFailure_H
+#pragma once
#include "Swiften/Elements/Element.h"
+#include "Swiften/Base/Shared.h"
namespace Swift {
- class AuthFailure : public Element {
+ class AuthFailure : public Element, public Shared<AuthFailure> {
public:
AuthFailure() {}
};
}
-
-#endif
diff --git a/Swiften/Elements/ComponentHandshake.h b/Swiften/Elements/ComponentHandshake.h
index 1067310..d9088e0 100644
--- a/Swiften/Elements/ComponentHandshake.h
+++ b/Swiften/Elements/ComponentHandshake.h
@@ -8,9 +8,10 @@
#include "Swiften/Elements/Element.h"
#include "Swiften/Base/String.h"
+#include "Swiften/Base/Shared.h"
namespace Swift {
- class ComponentHandshake : public Element {
+ class ComponentHandshake : public Element, public Shared<ComponentHandshake> {
public:
ComponentHandshake(const String& data = "") : data(data) {
}