Fixed ambiguity when parameter is not const.
This commit is contained in:
parent
5d18fce959
commit
2ecc5c0c27
@ -27,11 +27,11 @@ namespace misc {
|
|||||||
|
|
||||||
void importanceHelper::resetImportance(ref <message> msg)
|
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
|
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 "X-Priority" field
|
||||||
try
|
try
|
||||||
@ -116,11 +116,11 @@ const importanceHelper::Importance importanceHelper::getImportance(const ref <co
|
|||||||
|
|
||||||
void importanceHelper::setImportance(ref <message> msg, const Importance i)
|
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
|
// "X-Priority:" Field
|
||||||
ref <defaultField> fld = hdr->getField("X-Priority").dynamicCast <defaultField>();
|
ref <defaultField> fld = hdr->getField("X-Priority").dynamicCast <defaultField>();
|
||||||
|
@ -56,11 +56,11 @@ public:
|
|||||||
*/
|
*/
|
||||||
static void resetImportance(ref <message> msg);
|
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
|
* @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.
|
/** Return the importance of the specified message.
|
||||||
*
|
*
|
||||||
@ -68,15 +68,15 @@ public:
|
|||||||
* @return importance of the message, or default importance is no
|
* @return importance of the message, or default importance is no
|
||||||
* information about importance is given in the message
|
* 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
|
* @param hdr message header from which to retrieve importance
|
||||||
* @return importance of the message, or default importance is no
|
* @return importance of the message, or default importance is no
|
||||||
* information about importance is given in the message
|
* 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.
|
/** Set the importance of the specified message.
|
||||||
*
|
*
|
||||||
@ -85,12 +85,12 @@ public:
|
|||||||
*/
|
*/
|
||||||
static void setImportance(ref <message> msg, const Importance i);
|
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 hdr message header on which to set importance
|
||||||
* @param i new message importance
|
* @param i new message importance
|
||||||
*/
|
*/
|
||||||
static void setImportance(ref <header> hdr, const Importance i);
|
static void setImportanceHeader(ref <header> hdr, const Importance i);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user