diff options
Diffstat (limited to 'Swiften/Elements')
-rw-r--r-- | Swiften/Elements/Priority.h | 7 | ||||
-rw-r--r-- | Swiften/Elements/StreamFeatures.h | 10 |
2 files changed, 7 insertions, 10 deletions
diff --git a/Swiften/Elements/Priority.h b/Swiften/Elements/Priority.h index eb4683f..12181d4 100644 --- a/Swiften/Elements/Priority.h +++ b/Swiften/Elements/Priority.h @@ -4,14 +4,15 @@ * See Documentation/Licenses/GPLv3.txt for more information. */ -#ifndef SWIFTEN_Priority_H -#define SWIFTEN_Priority_H +#pragma once #include "Swiften/Elements/Payload.h" namespace Swift { class Priority : public Payload { public: + typedef boost::shared_ptr<Priority> ref; + Priority(int priority = 0) : priority_(priority) { } @@ -27,5 +28,3 @@ namespace Swift { int priority_; }; } - -#endif diff --git a/Swiften/Elements/StreamFeatures.h b/Swiften/Elements/StreamFeatures.h index d8a6af7..32446ce 100644 --- a/Swiften/Elements/StreamFeatures.h +++ b/Swiften/Elements/StreamFeatures.h @@ -4,8 +4,7 @@ * See Documentation/Licenses/GPLv3.txt for more information. */ -#ifndef SWIFTEN_StreamFeatures_H -#define SWIFTEN_StreamFeatures_H +#pragma once #include <vector> #include <algorithm> @@ -14,9 +13,10 @@ #include "Swiften/Elements/Element.h" namespace Swift { - class StreamFeatures : public Element - { + class StreamFeatures : public Element { public: + typedef boost::shared_ptr<StreamFeatures> ref; + StreamFeatures() : hasStartTLS_(false), hasResourceBind_(false), hasSession_(false), hasStreamManagement_(false) {} void setHasStartTLS() { @@ -88,5 +88,3 @@ namespace Swift { bool hasStreamManagement_; }; } - -#endif |