From f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Thu, 21 Nov 2013 22:16:57 +0100 Subject: Boost/C++11 shared pointers. --- tests/utility/encoder/encoderTestUtils.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/utility/encoder/encoderTestUtils.hpp') diff --git a/tests/utility/encoder/encoderTestUtils.hpp b/tests/utility/encoder/encoderTestUtils.hpp index 0eb93871..d74c4709 100644 --- a/tests/utility/encoder/encoderTestUtils.hpp +++ b/tests/utility/encoder/encoderTestUtils.hpp @@ -23,10 +23,10 @@ // Helper function to obtain an encoder given its name -static vmime::ref getEncoder(const vmime::string& name, +static vmime::shared_ptr getEncoder(const vmime::string& name, int maxLineLength = 0, const vmime::propertySet props = vmime::propertySet()) { - vmime::ref enc = + vmime::shared_ptr enc = vmime::utility::encoder::encoderFactory::getInstance()->create(name); enc->getProperties() = props; @@ -42,7 +42,7 @@ static vmime::ref getEncoder(const vmime::str static const vmime::string encode(const vmime::string& name, const vmime::string& in, int maxLineLength = 0, const vmime::propertySet props = vmime::propertySet()) { - vmime::ref enc = getEncoder(name, maxLineLength, props); + vmime::shared_ptr enc = getEncoder(name, maxLineLength, props); vmime::utility::inputStreamStringAdapter vin(in); @@ -58,7 +58,7 @@ static const vmime::string encode(const vmime::string& name, const vmime::string // Decoding helper function static const vmime::string decode(const vmime::string& name, const vmime::string& in, int maxLineLength = 0) { - vmime::ref enc = getEncoder(name, maxLineLength); + vmime::shared_ptr enc = getEncoder(name, maxLineLength); vmime::utility::inputStreamStringAdapter vin(in); -- cgit v1.2.3