diff options
Diffstat (limited to '')
-rw-r--r-- | src/bodyPart.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bodyPart.cpp b/src/bodyPart.cpp index 20bb1026..7d60461e 100644 --- a/src/bodyPart.cpp +++ b/src/bodyPart.cpp @@ -37,6 +37,15 @@ bodyPart::bodyPart() } +bodyPart::bodyPart(weak_ref <vmime::bodyPart> parentPart) + : m_header(vmime::create <header>()), + m_body(vmime::create <body>()), + m_parent(parentPart) +{ + m_body->setParentPart(thisRef().dynamicCast <bodyPart>()); +} + + void bodyPart::parse(const string& buffer, const string::size_type position, const string::size_type end, string::size_type* newPosition) { |