aboutsummaryrefslogtreecommitdiffstats
path: root/vmime/defaultAttachment.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'vmime/defaultAttachment.hpp')
-rw-r--r--vmime/defaultAttachment.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/vmime/defaultAttachment.hpp b/vmime/defaultAttachment.hpp
index 65589b48..c451d9f8 100644
--- a/vmime/defaultAttachment.hpp
+++ b/vmime/defaultAttachment.hpp
@@ -41,8 +41,8 @@ protected:
public:
- defaultAttachment(const contentHandler& data, const encoding& enc, const mediaType& type, const text& desc = NULL_TEXT);
- defaultAttachment(const contentHandler& data, const mediaType& type, const text& desc = NULL_TEXT);
+ defaultAttachment(ref <contentHandler> data, const encoding& enc, const mediaType& type, const text& desc = NULL_TEXT);
+ defaultAttachment(ref <contentHandler> data, const mediaType& type, const text& desc = NULL_TEXT);
defaultAttachment(const defaultAttachment& attach);
~defaultAttachment();
@@ -51,15 +51,15 @@ public:
const mediaType& getType() const;
const text& getDescription() const;
- const contentHandler& getData() const;
+ const ref <const contentHandler> getData() const;
const encoding& getEncoding() const;
protected:
- mediaType m_type; // Media type (eg. "application/octet-stream")
- text m_desc; // Description (eg. "The image you requested")
- contentHandler* m_data; // Attachment data (eg. the file contents)
- encoding m_encoding; // Encoding
+ mediaType m_type; // Media type (eg. "application/octet-stream")
+ text m_desc; // Description (eg. "The image you requested")
+ ref <contentHandler> m_data; // Attachment data (eg. the file contents)
+ encoding m_encoding; // Encoding
private: