diff options
| author | Remko Tronçon <git@el-tramo.be> | 2011-06-12 19:41:19 (GMT) | 
|---|---|---|
| committer | Remko Tronçon <git@el-tramo.be> | 2011-06-12 19:41:19 (GMT) | 
| commit | 75025326ec13a76cb2a724380bf7569aa6dc6ecf (patch) | |
| tree | f05bd81ad6177cda51f20e559745f62ac7d27ab9 /Swiften/Elements/Message.h | |
| parent | 29a83617e0a066ee0692d2bbcecc9335f73b8138 (diff) | |
| download | swift-75025326ec13a76cb2a724380bf7569aa6dc6ecf.zip swift-75025326ec13a76cb2a724380bf7569aa6dc6ecf.tar.bz2 | |
Replace explicit new with make_shared.
Diffstat (limited to 'Swiften/Elements/Message.h')
| -rw-r--r-- | Swiften/Elements/Message.h | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/Swiften/Elements/Message.h b/Swiften/Elements/Message.h index dc2eaf1..19e3fbb 100644 --- a/Swiften/Elements/Message.h +++ b/Swiften/Elements/Message.h @@ -8,6 +8,7 @@  #include <boost/optional.hpp>  #include <boost/shared_ptr.hpp> +#include <boost/smart_ptr/make_shared.hpp>  #include <string>  #include <Swiften/Elements/Body.h> @@ -34,7 +35,7 @@ namespace Swift {  			}  			void setSubject(const std::string& subject) {  -				updatePayload(boost::shared_ptr<Subject>(new Subject(subject))); +				updatePayload(boost::make_shared<Subject>(subject));  			}  			std::string getBody() const {  @@ -46,7 +47,7 @@ namespace Swift {  			}  			void setBody(const std::string& body) {  -				updatePayload(boost::shared_ptr<Body>(new Body(body))); +				updatePayload(boost::make_shared<Body>(body));  			}  			bool isError() { | 
 Swift
 Swift