diff options
author | Till Adam <adam@kde.org> | 2008-01-14 22:53:45 +0000 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-04-23 23:12:46 +0900 |
commit | 929b0012612990a7ce28c7555bbb580a6ab00079 (patch) | |
tree | 42193b02b857d7a90ec3e3da21d1f1918d51a730 /tdeioslave | |
parent | 00e7e5fc84f05f896edbf8485a4079c88c602583 (diff) | |
download | tdepim-929b0012612990a7ce28c7555bbb580a6ab00079.tar.gz tdepim-929b0012612990a7ce28c7555bbb580a6ab00079.zip |
Make getStr const correct.
Cherry-picked from: 925d1f70010bc111ad9f4a3e910d689aa4e27181
Signed-off-by: Luke Dashjr <luke-jr+git@utopios.org>
(cherry picked from commit b07b3401ab3167d0d83078ce52705e5aa49c9776)
Diffstat (limited to 'tdeioslave')
-rw-r--r-- | tdeioslave/imap4/mailaddress.cc | 7 | ||||
-rw-r--r-- | tdeioslave/imap4/mailaddress.h | 2 |
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); |