summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-01-21 18:36:11 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-01-21 18:36:11 (GMT)
commit739e16ab8fa21f22b8ddf827b0979e71bf613e78 (patch)
tree91bf9bad8e8ade3aa9484fc01dff0221addb4cbe /Swiften/Elements
parentc632dffabdd3387547bd07cd96754deab47703bc (diff)
downloadswift-contrib-739e16ab8fa21f22b8ddf827b0979e71bf613e78.zip
swift-contrib-739e16ab8fa21f22b8ddf827b0979e71bf613e78.tar.bz2
Code cleanup.
Diffstat (limited to 'Swiften/Elements')
-rw-r--r--Swiften/Elements/Priority.h7
-rw-r--r--Swiften/Elements/StreamFeatures.h10
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