summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Parser/UnitTest/StanzaParserTest.cpp')
-rw-r--r--Swiften/Parser/UnitTest/StanzaParserTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Parser/UnitTest/StanzaParserTest.cpp b/Swiften/Parser/UnitTest/StanzaParserTest.cpp
index b2ddb39..88e6dec 100644
--- a/Swiften/Parser/UnitTest/StanzaParserTest.cpp
+++ b/Swiften/Parser/UnitTest/StanzaParserTest.cpp
@@ -187,19 +187,19 @@ class StanzaParserTest : public CppUnit::TestFixture {
public:
MyStanza() {}
};
class MyStanzaParser : public StanzaParser
{
public:
MyStanzaParser(PayloadParserFactoryCollection* collection) : StanzaParser(collection)
{
- stanza_ = boost::shared_ptr<MyStanza>(new MyStanza());
+ stanza_ = boost::make_shared<MyStanza>();
}
virtual boost::shared_ptr<Element> getElement() const {
return stanza_;
}
private:
boost::shared_ptr<MyStanza> stanza_;
};