Removed useless 'const' in return value of some functions.

This commit is contained in:
Vincent Richard 2005-01-06 20:01:41 +00:00
parent 8a752d3889
commit 970df50e48
15 changed files with 16 additions and 20 deletions

View File

@ -220,7 +220,7 @@ address* addressList::getAddressAt(const int pos)
} }
const address* const addressList::getAddressAt(const int pos) const const address* addressList::getAddressAt(const int pos) const
{ {
return (m_list[pos]); return (m_list[pos]);
} }

View File

@ -678,7 +678,7 @@ bodyPart* body::getPartAt(const int pos)
} }
const bodyPart* const body::getPartAt(const int pos) const const bodyPart* body::getPartAt(const int pos) const
{ {
return (m_parts[pos]); return (m_parts[pos]);
} }

View File

@ -482,7 +482,7 @@ headerField* header::getFieldAt(const int pos)
} }
const headerField* const header::getFieldAt(const int pos) const const headerField* header::getFieldAt(const int pos) const
{ {
return (m_fields[pos]); return (m_fields[pos]);
} }

View File

@ -322,7 +322,7 @@ mailbox* mailboxGroup::getMailboxAt(const int pos)
} }
const mailbox* const mailboxGroup::getMailboxAt(const int pos) const const mailbox* mailboxGroup::getMailboxAt(const int pos) const
{ {
return (m_list[pos]); return (m_list[pos]);
} }

View File

@ -123,7 +123,7 @@ mailbox* mailboxList::getMailboxAt(const int pos)
} }
const mailbox* const mailboxList::getMailboxAt(const int pos) const const mailbox* mailboxList::getMailboxAt(const int pos) const
{ {
return static_cast <const mailbox*>(addressList::getAddressAt(pos)); return static_cast <const mailbox*>(addressList::getAddressAt(pos));
} }

View File

@ -406,7 +406,7 @@ parameter* parameterizedHeaderField::getParameterAt(const int pos)
} }
const parameter* const parameterizedHeaderField::getParameterAt(const int pos) const const parameter* parameterizedHeaderField::getParameterAt(const int pos) const
{ {
return (m_params[pos]); return (m_params[pos]);
} }

View File

@ -214,7 +214,7 @@ word* text::getWordAt(const int pos)
} }
const word* const text::getWordAt(const int pos) const const word* text::getWordAt(const int pos) const
{ {
return (m_words[pos]); return (m_words[pos]);
} }

View File

@ -133,7 +133,7 @@ public:
* @param pos position * @param pos position
* @return address at position 'pos' * @return address at position 'pos'
*/ */
const address* const getAddressAt(const int pos) const; const address* getAddressAt(const int pos) const;
/** Return the address list. /** Return the address list.
* *

View File

@ -134,7 +134,7 @@ public:
* @param pos position * @param pos position
* @return part at position 'pos' * @return part at position 'pos'
*/ */
const bodyPart* const getPartAt(const int pos) const; const bodyPart* getPartAt(const int pos) const;
/** Return the part list. /** Return the part list.
* *

View File

@ -196,7 +196,7 @@ public:
* @param pos position * @param pos position
* @return field at position 'pos' * @return field at position 'pos'
*/ */
const headerField* const getFieldAt(const int pos) const; const headerField* getFieldAt(const int pos) const;
/** Return the field list. /** Return the field list.
* *

View File

@ -140,7 +140,7 @@ public:
* @param pos position * @param pos position
* @return mailbox at position 'pos' * @return mailbox at position 'pos'
*/ */
const mailbox* const getMailboxAt(const int pos) const; const mailbox* getMailboxAt(const int pos) const;
/** Return the mailbox list. /** Return the mailbox list.
* *

View File

@ -32,15 +32,11 @@ namespace vmime
/** A list of mailboxes (basic type). /** A list of mailboxes (basic type).
*/ */
#ifdef __GNUC__ #if (defined(__GNUC__) && (__GNUC__ >= 3) && (__GNUC_MINOR__ <= 2))
# if (__GNUC__ >= 3) && (__GNUC_MINOR__ <= 2)
class mailboxList : public addressList // BUG with gcc <= 3.2 class mailboxList : public addressList // BUG with gcc <= 3.2
#else #else
class mailboxList : protected addressList class mailboxList : protected addressList
#endif #endif
#else
class mailboxList : protected addressList
#endif
{ {
friend class mailboxGroup; friend class mailboxGroup;
@ -130,7 +126,7 @@ public:
* @param pos position * @param pos position
* @return mailbox at position 'pos' * @return mailbox at position 'pos'
*/ */
const mailbox* const getMailboxAt(const int pos) const; const mailbox* getMailboxAt(const int pos) const;
/** Return the mailbox list. /** Return the mailbox list.
* *

View File

@ -147,7 +147,7 @@ public:
* @param pos position * @param pos position
* @return parameter at position 'pos' * @return parameter at position 'pos'
*/ */
const parameter* const getParameterAt(const int pos) const; const parameter* getParameterAt(const int pos) const;
/** Return the parameter list. /** Return the parameter list.
* *

View File

@ -138,7 +138,7 @@ public:
sm_handler = new TYPE; sm_handler = new TYPE;
} }
static const handler* const getHandler() static const handler* getHandler()
{ {
if (!sm_handler) if (!sm_handler)
throw exceptions::no_platform_dependant_handler(); throw exceptions::no_platform_dependant_handler();

View File

@ -110,7 +110,7 @@ public:
* @param pos position * @param pos position
* @return word at position 'pos' * @return word at position 'pos'
*/ */
const word* const getWordAt(const int pos) const; const word* getWordAt(const int pos) const;
/** Return the word list. /** Return the word list.
* *