[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdepim/kmail
From:       Ingo Klöcker <kloecker () kde ! org>
Date:       2005-10-15 17:10:15
Message-ID: 1129396215.358163.24372.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 470929 by kloecker:

This check is wrong. idx must be in the range 0..(count-1). Rewrite the rule to make it easier to read.

 M  +1 -1      folderstorage.cpp  


--- branches/KDE/3.5/kdepim/kmail/folderstorage.cpp #470928:470929
@@ -460,7 +460,7 @@
 //-----------------------------------------------------------------------------
 KMMessage* FolderStorage::getMsg(int idx)
 {
-  if(!(idx >= 0 && idx <= count()))
+  if ( idx < 0 || idx >= count() )
     return 0;
 
   KMMsgBase* mb = getMsgBase(idx);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic