diff options
author | Vincent Richard <[email protected]> | 2006-07-13 16:32:39 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2006-07-13 16:32:39 +0000 |
commit | 9a42c8bca4af312b2506a8ae409f9c533946a5c7 (patch) | |
tree | 1cbe3c9907522617393798c70bae73a33b846292 /src/plainTextPart.cpp | |
parent | Fixed warning for uninitialized variable. (diff) | |
download | vmime-9a42c8bca4af312b2506a8ae409f9c533946a5c7.tar.gz vmime-9a42c8bca4af312b2506a8ae409f9c533946a5c7.zip |
Fixed bugs in MHTML code + unit tests.
Diffstat (limited to 'src/plainTextPart.cpp')
-rw-r--r-- | src/plainTextPart.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plainTextPart.cpp b/src/plainTextPart.cpp index 8ad24a51..5d82c981 100644 --- a/src/plainTextPart.cpp +++ b/src/plainTextPart.cpp @@ -57,11 +57,11 @@ const int plainTextPart::getPartCount() const } -void plainTextPart::generateIn(bodyPart& /* message */, bodyPart& parent) const +void plainTextPart::generateIn(ref <bodyPart> /* message */, ref <bodyPart> parent) const { // Create a new part ref <bodyPart> part = vmime::create <bodyPart>(); - parent.getBody()->appendPart(part); + parent->getBody()->appendPart(part); // Set header fields part->getHeader()->ContentType()->setValue(mediaType(mediaTypes::TEXT, mediaTypes::TEXT_PLAIN)); @@ -73,15 +73,15 @@ void plainTextPart::generateIn(bodyPart& /* message */, bodyPart& parent) const } -void plainTextPart::parse(const bodyPart& /* message */, - const bodyPart& /* parent */, const bodyPart& textPart) +void plainTextPart::parse(ref <const bodyPart> /* message */, + ref <const bodyPart> /* parent */, ref <const bodyPart> textPart) { - m_text = textPart.getBody()->getContents()->clone().dynamicCast <contentHandler>(); + m_text = textPart->getBody()->getContents()->clone().dynamicCast <contentHandler>(); try { const contentTypeField& ctf = dynamic_cast<contentTypeField&> - (*textPart.getHeader()->findField(fields::CONTENT_TYPE)); + (*textPart->getHeader()->findField(fields::CONTENT_TYPE)); m_charset = ctf.getCharset(); } |