diff options
author | Vincent Richard <[email protected]> | 2005-08-26 17:02:18 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-08-26 17:02:18 +0000 |
commit | 2ecc5c0c27b6791acbe49b65c9f6cfddb8a7177a (patch) | |
tree | f3784fcb86c1b7890cdba344ed50e22507c2c76c | |
parent | Moved to CppUnit for unit tests framework. (diff) | |
download | vmime-2ecc5c0c27b6791acbe49b65c9f6cfddb8a7177a.tar.gz vmime-2ecc5c0c27b6791acbe49b65c9f6cfddb8a7177a.zip |
Fixed ambiguity when parameter is not const.
-rw-r--r-- | src/misc/importanceHelper.cpp | 14 | ||||
-rw-r--r-- | vmime/misc/importanceHelper.hpp | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/src/misc/importanceHelper.cpp b/src/misc/importanceHelper.cpp index 37612085..d8e2cd6c 100644 --- a/src/misc/importanceHelper.cpp +++ b/src/misc/importanceHelper.cpp @@ -27,11 +27,11 @@ namespace misc { void importanceHelper::resetImportance(ref <message> msg) { - resetImportance(msg->getHeader()); + resetImportanceHeader(msg->getHeader()); } -void importanceHelper::resetImportance(ref <header> hdr) +void importanceHelper::resetImportanceHeader(ref <header> hdr) { try { @@ -55,13 +55,13 @@ void importanceHelper::resetImportance(ref <header> hdr) } -const importanceHelper::Importance importanceHelper::getImportance(const ref <const message> msg) +const importanceHelper::Importance importanceHelper::getImportance(ref <const message> msg) { - return getImportance(msg->getHeader()); + return getImportanceHeader(msg->getHeader()); } -const importanceHelper::Importance importanceHelper::getImportance(const ref <const header> hdr) +const importanceHelper::Importance importanceHelper::getImportanceHeader(ref <const header> hdr) { // Try "X-Priority" field try @@ -116,11 +116,11 @@ const importanceHelper::Importance importanceHelper::getImportance(const ref <co void importanceHelper::setImportance(ref <message> msg, const Importance i) { - setImportance(msg->getHeader(), i); + setImportanceHeader(msg->getHeader(), i); } -void importanceHelper::setImportance(ref <header> hdr, const Importance i) +void importanceHelper::setImportanceHeader(ref <header> hdr, const Importance i) { // "X-Priority:" Field ref <defaultField> fld = hdr->getField("X-Priority").dynamicCast <defaultField>(); diff --git a/vmime/misc/importanceHelper.hpp b/vmime/misc/importanceHelper.hpp index 1f2b4553..6abe006e 100644 --- a/vmime/misc/importanceHelper.hpp +++ b/vmime/misc/importanceHelper.hpp @@ -56,11 +56,11 @@ public: */ static void resetImportance(ref <message> msg); - /** Reset the importance of the message to the default importance. + /** Reset the importance of a message to the default importance. * * @param hdr message header on which to reset importance */ - static void resetImportance(ref <header> hdr); + static void resetImportanceHeader(ref <header> hdr); /** Return the importance of the specified message. * @@ -68,15 +68,15 @@ public: * @return importance of the message, or default importance is no * information about importance is given in the message */ - static const Importance getImportance(const ref <const message> msg); + static const Importance getImportance(ref <const message> msg); - /** Return the importance of the specified message. + /** Return the importance of a message, given its header. * * @param hdr message header from which to retrieve importance * @return importance of the message, or default importance is no * information about importance is given in the message */ - static const Importance getImportance(const ref <const header> hdr); + static const Importance getImportanceHeader(ref <const header> hdr); /** Set the importance of the specified message. * @@ -85,12 +85,12 @@ public: */ static void setImportance(ref <message> msg, const Importance i); - /** Set the importance of the specified message. + /** Set the importance of a message, given its header. * * @param hdr message header on which to set importance * @param i new message importance */ - static void setImportance(ref <header> hdr, const Importance i); + static void setImportanceHeader(ref <header> hdr, const Importance i); }; |