aboutsummaryrefslogtreecommitdiffstats
path: root/examples/example7.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-05-18 06:31:05 +0000
committerVincent Richard <[email protected]>2013-05-18 06:31:05 +0000
commitd672c2b12487733f3883a77eabcf39ee15c57f33 (patch)
tree77f17ad4af3147bbf476ff587946e2160ec3933c /examples/example7.cpp
parentLog contents of generated files before build. (diff)
downloadvmime-d672c2b12487733f3883a77eabcf39ee15c57f33.tar.gz
vmime-d672c2b12487733f3883a77eabcf39ee15c57f33.zip
Issue #41.
Diffstat (limited to 'examples/example7.cpp')
-rw-r--r--examples/example7.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/example7.cpp b/examples/example7.cpp
index 2d6e59f2..ec7d2b86 100644
--- a/examples/example7.cpp
+++ b/examples/example7.cpp
@@ -54,7 +54,8 @@ int main()
std::cout << " * " << enc->getName() << std::endl;
- vmime::ref <vmime::utility::encoder::encoder> e = enc->create();
+ vmime::ref <vmime::utility::encoder::encoder> e =
+ vmime::utility::encoder::encoderFactory::getInstance()->create(enc->getName());
std::vector <vmime::string> props = e->getAvailableProperties();