aboutsummaryrefslogtreecommitdiffstats
path: root/vmime/attachment.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'vmime/attachment.hpp')
-rw-r--r--vmime/attachment.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/vmime/attachment.hpp b/vmime/attachment.hpp
index 60c7b29d..72fb13d0 100644
--- a/vmime/attachment.hpp
+++ b/vmime/attachment.hpp
@@ -37,7 +37,7 @@ namespace vmime
/** Base class for all types of attachment.
*/
-class attachment
+class attachment : public object
{
friend class messageBuilder;
friend class messageParser;
@@ -63,7 +63,7 @@ public:
/** Return the data contained in this attachment.
* @return attachment data
*/
- virtual const contentHandler& getData() const = 0;
+ virtual const ref <const contentHandler> getData() const = 0;
/** Return the encoding used for this attachment.
* @return attachment data encoding