On Wednesday 07 May 2008, Allen Winter wrote: > On Tuesday 06 May 2008 14:47:59 Jakub Stachowski wrote: > > SVN commit 804674 by qbast: > > > > Use static const instead of #define > > > Curious minds want to know. :) > Is this because we want to avoid the preprocessor potentially > screwing things up? No, both work, but #define is ugly :) static const int, OTOH, is not a preprocessor hack and gives some type safety. > Is this something Krazy should check for? For constant int values, at least, yes. -- David Faure, faure@kde.org, dfaure@klaralvdalens-datakonsult.se KDE/KOffice developer, Qt consultancy projects Klarälvdalens Datakonsult AB, Platform-independent software solutions