aboutsummaryrefslogtreecommitdiffstats
path: root/tests/parser/encoderTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/parser/encoderTest.cpp')
-rw-r--r--tests/parser/encoderTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/parser/encoderTest.cpp b/tests/parser/encoderTest.cpp
index 5d27fffc..55c83f83 100644
--- a/tests/parser/encoderTest.cpp
+++ b/tests/parser/encoderTest.cpp
@@ -35,7 +35,7 @@ namespace
// Encoding helper function
static const vmime::string encode(const vmime::string& name, const vmime::string& in, int maxLineLength = 0)
{
- vmime::encoder* enc = vmime::encoderFactory::getInstance()->create(name);
+ vmime::ref <vmime::encoder> enc = vmime::encoderFactory::getInstance()->create(name);
if (maxLineLength != 0)
enc->getProperties()["maxlinelength"] = maxLineLength;
@@ -53,7 +53,7 @@ namespace
// Decoding helper function
static const vmime::string decode(const vmime::string& name, const vmime::string& in, int maxLineLength = 0)
{
- vmime::encoder* enc = vmime::encoderFactory::getInstance()->create(name);
+ vmime::ref <vmime::encoder> enc = vmime::encoderFactory::getInstance()->create(name);
if (maxLineLength != 0)
enc->getProperties()["maxlinelength"] = maxLineLength;