summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-06-12 19:41:19 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-06-12 19:41:19 (GMT)
commit75025326ec13a76cb2a724380bf7569aa6dc6ecf (patch)
treef05bd81ad6177cda51f20e559745f62ac7d27ab9 /Swiften/Elements/Presence.cpp
parent29a83617e0a066ee0692d2bbcecc9335f73b8138 (diff)
downloadswift-75025326ec13a76cb2a724380bf7569aa6dc6ecf.zip
swift-75025326ec13a76cb2a724380bf7569aa6dc6ecf.tar.bz2
Replace explicit new with make_shared.
Diffstat (limited to 'Swiften/Elements/Presence.cpp')
-rw-r--r--Swiften/Elements/Presence.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Elements/Presence.cpp b/Swiften/Elements/Presence.cpp
index 6cde567..38b8a4c 100644
--- a/Swiften/Elements/Presence.cpp
+++ b/Swiften/Elements/Presence.cpp
@@ -27,7 +27,7 @@ int Presence::getPriority() const {
}
void Presence::setPriority(int priority) {
- updatePayload(boost::shared_ptr<Priority>(new Priority(priority)));
+ updatePayload(boost::make_shared<Priority>(priority));
}
std::string Presence::getStatus() const {
@@ -39,7 +39,7 @@ std::string Presence::getStatus() const {
}
void Presence::setStatus(const std::string& status) {
- updatePayload(boost::shared_ptr<Status>(new Status(status)));
+ updatePayload(boost::make_shared<Status>(status));
}