summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Elements/StreamFeatures.h')
-rw-r--r--Swiften/Elements/StreamFeatures.h10
1 files changed, 4 insertions, 6 deletions
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