From 5839de3affdaedafdcb5d9ec7cdfe57fd373d558 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be> Date: Sun, 12 Jun 2011 11:22:34 +0200 Subject: Use make_shared in IQ. 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); } -- cgit v0.10.2-6-g49f6