From 5839de3affdaedafdcb5d9ec7cdfe57fd373d558 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= 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 +#include + namespace Swift { boost::shared_ptr IQ::createRequest( Type type, const JID& to, const std::string& id, boost::shared_ptr payload) { - boost::shared_ptr iq(new IQ(type)); + boost::shared_ptr iq = boost::make_shared(type); if (to.isValid()) { iq->setTo(to); } -- cgit v0.10.2-6-g49f6