diff options
author | Vincent Richard <[email protected]> | 2005-07-12 22:28:02 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-07-12 22:28:02 +0000 |
commit | 681297e10b666e13cc463f6fbb16236f36c3266c (patch) | |
tree | 5d2392e2283232ed3475cd9c69e22897b03e8a97 /src/encoding.cpp | |
parent | Added contentHandler::extractRaw(). (diff) | |
download | vmime-681297e10b666e13cc463f6fbb16236f36c3266c.tar.gz vmime-681297e10b666e13cc463f6fbb16236f36c3266c.zip |
Reference counting and smart pointers.
Diffstat (limited to 'src/encoding.cpp')
-rw-r--r-- | src/encoding.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/encoding.cpp b/src/encoding.cpp index 632333fb..94168645 100644 --- a/src/encoding.cpp +++ b/src/encoding.cpp @@ -69,7 +69,7 @@ void encoding::generate(utility::outputStream& os, const string::size_type /* ma } -encoder* encoding::getEncoder() const +ref <encoder> encoding::getEncoder() const { return (encoderFactory::getInstance()->create(generate())); } @@ -155,16 +155,16 @@ const encoding encoding::decide } -const encoding encoding::decide(const contentHandler& /* data */) +const encoding encoding::decide(ref <const contentHandler> /* data */) { // TODO: a better solution to do that? return (encoding(encodingTypes::BASE64)); } -encoding* encoding::clone() const +ref <component> encoding::clone() const { - return new encoding(*this); + return vmime::create <encoding>(*this); } @@ -188,9 +188,9 @@ void encoding::setName(const string& name) } -const std::vector <const component*> encoding::getChildComponents() const +const std::vector <ref <const component> > encoding::getChildComponents() const { - return std::vector <const component*>(); + return std::vector <ref <const component> >(); } |