From 681297e10b666e13cc463f6fbb16236f36c3266c Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 12 Jul 2005 22:28:02 +0000 Subject: Reference counting and smart pointers. --- tests/parser/encoderTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/parser/encoderTest.cpp') 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 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 enc = vmime::encoderFactory::getInstance()->create(name); if (maxLineLength != 0) enc->getProperties()["maxlinelength"] = maxLineLength; -- cgit v1.2.3