summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-06-12 09:22:34 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-06-12 09:22:34 (GMT)
commit5839de3affdaedafdcb5d9ec7cdfe57fd373d558 (patch)
treeff98c61f71db6e79f05d60e6ff069b53dfc5aba9 /Swiften
parent92d862ee9670cee46a2766b7e2242c4e93e37ca8 (diff)
downloadswift-5839de3affdaedafdcb5d9ec7cdfe57fd373d558.zip
swift-5839de3affdaedafdcb5d9ec7cdfe57fd373d558.tar.bz2
Use make_shared in IQ.
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/Elements/IQ.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Swiften/Elements/IQ.cpp b/Swiften/Elements/IQ.cpp
index 2c9c763..0f452ef 100644
--- a/Swiften/Elements/IQ.cpp
+++ b/Swiften/Elements/IQ.cpp
@@ -6,11 +6,13 @@
#include <Swiften/Elements/IQ.h>
+#include <boost/smart_ptr/make_shared.hpp>
+
namespace Swift {
boost::shared_ptr<IQ> IQ::createRequest(
Type type, const JID& to, const std::string& id, boost::shared_ptr<Payload> payload) {
- boost::shared_ptr<IQ> iq(new IQ(type));
+ boost::shared_ptr<IQ> iq = boost::make_shared<IQ>(type);
if (to.isValid()) {
iq->setTo(to);
}