aboutsummaryrefslogtreecommitdiffstats
path: root/src/contentTypeField.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-04-12 18:42:54 +0000
committerVincent Richard <[email protected]>2005-04-12 18:42:54 +0000
commitf879a9794c4908df8e7484250b56b13342a66038 (patch)
tree83f91b9f743eb70d5398c6ce543596b434274c16 /src/contentTypeField.cpp
parentAdded attachMDNRequest(). (diff)
downloadvmime-f879a9794c4908df8e7484250b56b13342a66038.tar.gz
vmime-f879a9794c4908df8e7484250b56b13342a66038.zip
Added support for RFC-2231.
Diffstat (limited to 'src/contentTypeField.cpp')
-rw-r--r--src/contentTypeField.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/contentTypeField.cpp b/src/contentTypeField.cpp
index 61b4e5e4..28e31901 100644
--- a/src/contentTypeField.cpp
+++ b/src/contentTypeField.cpp
@@ -40,13 +40,13 @@ contentTypeField::contentTypeField(contentTypeField&)
const string contentTypeField::getBoundary() const
{
- return (dynamic_cast <const defaultParameter&>(*findParameter("boundary")).getValue());
+ return (dynamic_cast <const defaultParameter&>(*findParameter("boundary")).getValue().getBuffer());
}
void contentTypeField::setBoundary(const string& boundary)
{
- dynamic_cast <defaultParameter&>(*getParameter("boundary")).setValue(boundary);
+ dynamic_cast <defaultParameter&>(*getParameter("boundary")).setValue(word(boundary));
}
@@ -64,13 +64,13 @@ void contentTypeField::setCharset(const charset& ch)
const string contentTypeField::getReportType() const
{
- return (dynamic_cast <const defaultParameter&>(*findParameter("report-type")).getValue());
+ return (dynamic_cast <const defaultParameter&>(*findParameter("report-type")).getValue().getBuffer());
}
void contentTypeField::setReportType(const string& reportType)
{
- dynamic_cast <defaultParameter&>(*getParameter("report-type")).setValue(reportType);
+ dynamic_cast <defaultParameter&>(*getParameter("report-type")).setValue(word(reportType));
}