Prevent some compiler warnings.

svn path=/trunk/kdenetwork/kmail/; revision=114851
wilder-work
Michael Haeckel 25 years ago
parent 08d8ea4398
commit afaa128982
  1. 7
      kmcomposewin.cpp
  2. 1
      kmfolder.cpp
  3. 4
      kmmessage.cpp
  4. 4
      kmrecentaddr.h

@ -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()) {

@ -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()))) {

@ -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<aStr.length(); index++) {
for (uint index=0; index<aStr.length(); index++) {
// the following conversion to latin1 is o.k. because
// we can safely ignore all non-latin1 characters
switch (aStr[index].latin1()) {

@ -43,7 +43,7 @@ public:
/**
* @returns the current maximum number of entries.
*/
int maxCount() const { return m_maxCount; }
uint maxCount() const { return m_maxCount; }
/**
* Loads the list of recently used addresses from the configfile.
@ -63,7 +63,7 @@ private:
void adjustSize();
int m_maxCount;
uint m_maxCount;
QStringList m_addresses;
static KMRecentAddresses *s_self;

Loading…
Cancel
Save