From ae6fb23b61fa254a6ba8f3433bb4c2642e459d61 Mon Sep 17 00:00:00 2001 From: Don Sanders Date: Mon, 10 Jul 2000 13:47:16 +0000 Subject: [PATCH] I don't know what that static file scope variable was about, but it looked silly so I removed it. svn path=/trunk/kdenetwork/kmail/; revision=55950 --- kmmessage.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kmmessage.cpp b/kmmessage.cpp index 489ffb57f..73bead553 100644 --- a/kmmessage.cpp +++ b/kmmessage.cpp @@ -44,7 +44,6 @@ static DwString emptyString(""); -static QCString result; // Values that are set from the config file with KMMessage::readConfig() static QString sReplyStr, sReplyAllStr, sIndentPrefixStr; @@ -207,8 +206,7 @@ const QString KMMessage::asString(void) mNeedsAssembly = FALSE; mMsg->Assemble(); } - result = mMsg->AsString().c_str(); - return result; + return mMsg->AsString().c_str(); } //----------------------------------------------------------------------------- @@ -239,6 +237,7 @@ void KMMessage::fromString(const QString& aStr, bool aSetStatus) const char* strPos; char* resultPos; char ch; + QCString result; if (mMsg) delete mMsg; mMsg = new DwMessage; @@ -987,7 +986,7 @@ const QString KMMessage::dateShortStr(void) const if (!header.HasDate()) return ""; unixTime = header.Date().AsUnixTime(); - result = ctime(&unixTime); + QCString result = ctime(&unixTime); if (result[result.length()-1]=='\n') result.truncate(result.length()-1); @@ -1282,6 +1281,7 @@ const QString KMMessage::headerField(const QString& aName) const { DwHeaders& header = mMsg->Headers(); DwField* field; + QCString result; if (aName.isEmpty() || !(field = header.FindField((const char*)aName))) result = "";