From 27840a441d2cc1c99eabe08a1d0a9f561540ce43 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Fri, 14 Jul 2006 08:28:35 +0000 Subject: Replaced & with ref<> + clean up. --- src/fileAttachment.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/fileAttachment.cpp') 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 part) const { defaultAttachment::generatePart(part); - ref cdf = part.getHeader()->ContentDisposition(). + ref cdf = part->getHeader()->ContentDisposition(). dynamicCast (); 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; } -- cgit v1.2.3