diff options
| author | Vincent Richard <[email protected]> | 2005-08-17 16:17:18 +0200 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2005-08-17 16:17:18 +0200 |
| commit | 8de88d9e37627e41acdee2602634814d81685112 (patch) | |
| tree | f521d61642bd08e2db0ca756544edbca9d330847 /src | |
| parent | Added FETCH_IMPORTANCE flag. (diff) | |
| download | vmime-8de88d9e37627e41acdee2602634814d81685112.tar.gz vmime-8de88d9e37627e41acdee2602634814d81685112.zip | |
Content handler constness.
Diffstat (limited to 'src')
| -rw-r--r-- | src/body.cpp | 2 | ||||
| -rw-r--r-- | src/defaultAttachment.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/body.cpp b/src/body.cpp index 135b1e14..9f6a235e 100644 --- a/src/body.cpp +++ b/src/body.cpp @@ -515,7 +515,7 @@ const ref <const contentHandler> body::getContents() const } -void body::setContents(ref <contentHandler> contents) +void body::setContents(ref <const contentHandler> contents) { m_contents = contents; } diff --git a/src/defaultAttachment.cpp b/src/defaultAttachment.cpp index 118a301a..0fe45c96 100644 --- a/src/defaultAttachment.cpp +++ b/src/defaultAttachment.cpp @@ -30,14 +30,14 @@ defaultAttachment::defaultAttachment() } -defaultAttachment::defaultAttachment(ref <contentHandler> data, +defaultAttachment::defaultAttachment(ref <const contentHandler> data, const encoding& enc, const mediaType& type, const text& desc, const word& name) : m_type(type), m_desc(desc), m_data(data), m_encoding(enc), m_name(name) { } -defaultAttachment::defaultAttachment(ref <contentHandler> data, +defaultAttachment::defaultAttachment(ref <const contentHandler> data, const mediaType& type, const text& desc, const word& name) : m_type(type), m_desc(desc), m_data(data), m_encoding(encoding::decide(data)), m_name(name) |
