aboutsummaryrefslogtreecommitdiffstats
path: root/vmime/attachment.hpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-11-21 21:16:57 +0000
committerVincent Richard <[email protected]>2013-11-21 21:16:57 +0000
commitf9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8 (patch)
tree2bdc90e361a8f6e0a81164cf67afec9f78f9b959 /vmime/attachment.hpp
parentPer-protocol include files. (diff)
downloadvmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.tar.gz
vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.zip
Boost/C++11 shared pointers.
Diffstat (limited to 'vmime/attachment.hpp')
-rw-r--r--vmime/attachment.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/vmime/attachment.hpp b/vmime/attachment.hpp
index e131fcd0..9730bc6c 100644
--- a/vmime/attachment.hpp
+++ b/vmime/attachment.hpp
@@ -79,7 +79,7 @@ public:
*
* @return attachment data
*/
- virtual const ref <const contentHandler> getData() const = 0;
+ virtual const shared_ptr <const contentHandler> getData() const = 0;
/** Return the encoding used for this attachment.
*
@@ -93,14 +93,14 @@ public:
* @return attachment part or NULL if the attachment is not
* attached to a part
*/
- virtual ref <const object> getPart() const = 0;
+ virtual shared_ptr <const object> getPart() const = 0;
/** Return the header of the attachment part.
*
* @return attachment part header or NULL if the attachment
* is not attached to a part
*/
- virtual ref <const header> getHeader() const = 0;
+ virtual shared_ptr <const header> getHeader() const = 0;
protected:
@@ -108,7 +108,7 @@ protected:
*
* @param parent body part in which to generate the attachment
*/
- virtual void generateIn(ref <bodyPart> parent) const = 0;
+ virtual void generateIn(shared_ptr <bodyPart> parent) const = 0;
};