From afaa128982dc1c0bdd2bef92d05d270fc4afb87d Mon Sep 17 00:00:00 2001 From: Michael Haeckel Date: Thu, 20 Sep 2001 09:22:19 +0000 Subject: [PATCH] Prevent some compiler warnings. svn path=/trunk/kdenetwork/kmail/; revision=114851 --- kmcomposewin.cpp | 7 +++---- kmfolder.cpp | 1 - kmmessage.cpp | 4 ++-- kmrecentaddr.h | 4 ++-- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/kmcomposewin.cpp b/kmcomposewin.cpp index e2c857ff6..1a8fd8761 100644 --- a/kmcomposewin.cpp +++ b/kmcomposewin.cpp @@ -274,8 +274,7 @@ void KMComposeWin::addAttachment(const QString &name, //----------------------------------------------------------------------------- void KMComposeWin::setBody(QString body) { - // TODO: implement KMComposeWin::setBody(). - kdDebug() << "KMComposeWin::setBody() isn't implemented yet." << endl; + mEditor->setText(body); } //----------------------------------------------------------------------------- @@ -1372,11 +1371,11 @@ QCString KMComposeWin::pgpProcessedMsg(void) // ignore '"' and ',' inside comments if (!_to.isEmpty()) { QString recipient; - int addrstart = 0; + uint addrstart = 0; int commentlevel = 0; bool insidequote = false; - for (int index=0; index<_to.length(); index++) { + for (uint index=0; index<_to.length(); index++) { // the following conversion to latin1 is o.k. because // we can safely ignore all non-latin1 characters switch (_to[index].latin1()) { diff --git a/kmfolder.cpp b/kmfolder.cpp index 610959f6e..65936084f 100644 --- a/kmfolder.cpp +++ b/kmfolder.cpp @@ -657,7 +657,6 @@ KMMessage* KMFolder::getMsg(int idx) msg = ((KMMessage*)mb); } else { QString mbSubject = mb->subject(); - time_t mbDate = mb->date(); msg = readMsg(idx); // sanity check if (mCompactable && (!msg || (msg->subject().isEmpty() != mbSubject.isEmpty()))) { diff --git a/kmmessage.cpp b/kmmessage.cpp index c078d3a53..1a84bb3df 100644 --- a/kmmessage.cpp +++ b/kmmessage.cpp @@ -2176,11 +2176,11 @@ QStringList KMMessage::splitEmailAddrList(const QString& aStr) return list; QString addr; - int addrstart = 0; + uint addrstart = 0; int commentlevel = 0; bool insidequote = false; - for (int index=0; index