From 50c3621cd3df4629023a87b9390c4fde30784272 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 28 Jan 2008 12:29:28 +0000 Subject: Fixed constructor ambiguity in 'fileAttachment'. --- src/fileAttachment.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/fileAttachment.cpp') diff --git a/src/fileAttachment.cpp b/src/fileAttachment.cpp index fe62edc6..da4d9c4c 100644 --- a/src/fileAttachment.cpp +++ b/src/fileAttachment.cpp @@ -36,6 +36,16 @@ namespace vmime { +fileAttachment::fileAttachment(const string& filename, const mediaType& type) +{ + m_type = type; + + setData(filename); + + m_encoding = encoding::decide(m_data); +} + + fileAttachment::fileAttachment(const string& filename, const mediaType& type, const text& desc) { m_type = type; @@ -48,7 +58,7 @@ fileAttachment::fileAttachment(const string& filename, const mediaType& type, co fileAttachment::fileAttachment(const string& filename, const mediaType& type, - const encoding& enc, const text& desc) + const text& desc, const encoding& enc) { m_type = type; m_desc = desc; -- cgit v1.2.3