diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2010-03-24 20:39:59 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2010-03-24 20:39:59 (GMT) |
commit | eb1cb68e11a3b24222a49ed254f8f7aea2f73bae (patch) | |
tree | 1e47a4443afb2ec61f032669050ee1b8834baa8d /qtools/qdatetime.cpp | |
parent | cd19d7a220915d1f637e0a0a5b2d05d5750f5db0 (diff) | |
download | Doxygen-eb1cb68e11a3b24222a49ed254f8f7aea2f73bae.zip Doxygen-eb1cb68e11a3b24222a49ed254f8f7aea2f73bae.tar.gz Doxygen-eb1cb68e11a3b24222a49ed254f8f7aea2f73bae.tar.bz2 |
Release-1.6.3-20100324
Diffstat (limited to 'qtools/qdatetime.cpp')
-rw-r--r-- | qtools/qdatetime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qtools/qdatetime.cpp b/qtools/qdatetime.cpp index cecb855..4edaca9 100644 --- a/qtools/qdatetime.cpp +++ b/qtools/qdatetime.cpp @@ -491,7 +491,7 @@ bool QDate::isValid( int y, int m, int d ) bool QDate::leapYear( int y ) { - return y % 4 == 0 && y % 100 != 0 || y % 400 == 0; + return (y % 4 == 0 && y % 100 != 0) || (y % 400 == 0); } /*! |