From b07b3401ab3167d0d83078ce52705e5aa49c9776 Mon Sep 17 00:00:00 2001 From: Till Adam Date: Mon, 14 Jan 2008 22:53:45 +0000 Subject: Make getStr const correct. Cherry-picked from: 925d1f70010bc111ad9f4a3e910d689aa4e27181 Signed-off-by: Luke Dashjr --- tdeioslave/imap4/mailaddress.cc | 7 ++++--- tdeioslave/imap4/mailaddress.h | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'tdeioslave') diff --git a/tdeioslave/imap4/mailaddress.cc b/tdeioslave/imap4/mailaddress.cc index 866484584..915a3bbbe 100644 --- a/tdeioslave/imap4/mailaddress.cc +++ b/tdeioslave/imap4/mailaddress.cc @@ -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 ()) { diff --git a/tdeioslave/imap4/mailaddress.h b/tdeioslave/imap4/mailaddress.h index 644034b24..6b4b2c6ea 100644 --- a/tdeioslave/imap4/mailaddress.h +++ b/tdeioslave/imap4/mailaddress.h @@ -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); -- cgit v1.2.1