Changes between Version 14 and Version 15 of EFLWebKitCodingStyle
- Timestamp:
- Aug 16, 2012, 7:17:46 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
EFLWebKitCodingStyle
v14 v15 8 8 * Use '''smart pointers''', like WKEinaSharedString, OwnPtr, RefPtr, etc. 9 9 * Use c++ '''new/delete''' operators 10 * Use '''const''' keyword instead of '''#define''' when you define constant variable.11 10 * Use '''NULL''' in public C headers instead of 0 12 11 * Use a double negation '''(!!)''' when you modify or compare with a Eina Bool member variable which stores a value in a bit field. … … 149 148 }}} 150 149 151 == Use const keyword instead of #define when you define constant variable ==152 === Right ===153 {{{154 #!cpp155 const int defaultTileWidth = 256;156 const int defaultTileHeigth = 256;157 }}}158 === Wrong ===159 {{{160 #!cpp161 #define DEFAULT_TILE_W (256)162 #define DEFAULT_TILE_H (256)163 }}}164 165 150 == Use NULL in public C headers instead of 0 (but keep using 0 in implementations and in private headers). == 166 151 === Right ===