From kde-commits Wed May 07 21:04:56 2008 From: David Faure Date: Wed, 07 May 2008 21:04:56 +0000 To: kde-commits Subject: Re: KDE/kdepimlibs/kioslave/imap4 Message-Id: <200805072304.58911.dfaure () kdab ! net> X-MARC-Message: https://marc.info/?l=kde-commits&m=121019435524534 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