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

List:       kde-commits
Subject:    kdesupport/akonadi/libs
From:       Marc Mutz <mutz () kde ! org>
Date:       2010-07-07 12:52:52
Message-ID: 20100707130224.BFF4BAC85D () svn ! kde ! org
[Download RAW message or body]

SVN commit 1147147 by mutz:

ImapInterval::end() return numeric_limits<Id>::max() instead of 0xff...ff

Suggested by the comment.

 M  +3 -1      imapset.cpp  


--- trunk/kdesupport/akonadi/libs/imapset.cpp #1147146:1147147
@@ -23,6 +23,8 @@
 
 #include <QtCore/QSharedData>
 
+#include <limits>
+
 using namespace Akonadi;
 
 class ImapInterval::Private : public QSharedData
@@ -117,7 +119,7 @@
 {
   if ( hasDefinedEnd() )
     return d->end;
-  return 0xFFFFFFFF; // should be INT_MAX, but where is that defined again?
+  return std::numeric_limits<Id>::max();
 }
 
 void ImapInterval::setBegin(Id value)
[prev in list] [next in list] [prev in thread] [next in thread] 

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