Make getStr const correct.

Cherry-picked from: 925d1f70010bc111ad9f4a3e910d689aa4e27181

Signed-off-by: Luke Dashjr <luke-jr+git@utopios.org>
pull/29/head
Till Adam 17 years ago committed by Michele Calgaro
parent fcd267d036
commit b07b3401ab
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -197,14 +197,15 @@ mailAddress::parseAddress (char *aCStr)
}
const TQCString
mailAddress::getStr ()
mailAddress::getStr () const
{
TQCString retVal(128); // Should be generally big enough
if (!rawFullName.isEmpty ())
{
KMime::addQuotes( rawFullName, false );
retVal = rawFullName + " ";
TQCString tmpName( rawFullName );
KMime::addQuotes( tmpName, false );
retVal = tmpName + " ";
}
if (!user.isEmpty ())
{

@ -63,7 +63,7 @@ public:
const TQCString & getCommentRaw () const;
int parseAddress (char *);
const TQCString getStr ();
const TQCString getStr () const;
bool isEmpty () const;
static TQString emailAddrAsAnchor (const mailAddress &, bool);

Loading…
Cancel
Save