summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tdeioslave/imap4/mailaddress.cc7
-rw-r--r--tdeioslave/imap4/mailaddress.h2
2 files changed, 5 insertions, 4 deletions
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);