aboutsummaryrefslogtreecommitdiffstats
path: root/src/fileAttachment.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2006-07-14 08:28:35 +0000
committerVincent Richard <[email protected]>2006-07-14 08:28:35 +0000
commit27840a441d2cc1c99eabe08a1d0a9f561540ce43 (patch)
treec4313edc758374995c26f26298a05414ea7dd5e6 /src/fileAttachment.cpp
parentFixed bugs in MHTML code + unit tests. (diff)
downloadvmime-27840a441d2cc1c99eabe08a1d0a9f561540ce43.tar.gz
vmime-27840a441d2cc1c99eabe08a1d0a9f561540ce43.zip
Replaced & with ref<> + clean up.
Diffstat (limited to 'src/fileAttachment.cpp')
-rw-r--r--src/fileAttachment.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fileAttachment.cpp b/src/fileAttachment.cpp
index ece0abc3..988cc0fb 100644
--- a/src/fileAttachment.cpp
+++ b/src/fileAttachment.cpp
@@ -66,7 +66,7 @@ void fileAttachment::setData(const string& filename)
if (!*file)
{
- delete (file);
+ delete file;
throw exceptions::open_file_error();
}
@@ -76,11 +76,11 @@ void fileAttachment::setData(const string& filename)
}
-void fileAttachment::generatePart(bodyPart& part) const
+void fileAttachment::generatePart(ref <bodyPart> part) const
{
defaultAttachment::generatePart(part);
- ref <contentDispositionField> cdf = part.getHeader()->ContentDisposition().
+ ref <contentDispositionField> cdf = part->getHeader()->ContentDisposition().
dynamicCast <contentDispositionField>();
if (m_fileInfo.hasSize()) cdf->setSize(utility::stringUtils::toString(m_fileInfo.getSize()));
@@ -93,13 +93,13 @@ void fileAttachment::generatePart(bodyPart& part) const
const fileAttachment::fileInfo& fileAttachment::getFileInfo() const
{
- return (m_fileInfo);
+ return m_fileInfo;
}
fileAttachment::fileInfo& fileAttachment::getFileInfo()
{
- return (m_fileInfo);
+ return m_fileInfo;
}