Changes between Version 4 and Version 5 of EFLWebKitCodingStyle
- Timestamp:
- Jan 18, 2012, 1:22:03 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
EFLWebKitCodingStyle
v4 v5 6 6 * Place '*' operator to data type 7 7 * Use C++ casting for type casting. For example, '''static_cast<...>, const_cast<...>, reinterpret_cast<...>''' 8 * Use smart pointers 9 * Use c++ new/delete operators 8 * Use '''smart pointers''' 9 * Use c++ '''new/delete''' operators 10 * Use '''const''' keyword instead of '''#define''' when you define constant variable. 10 11 11 12 = Example = … … 117 118 delete page; 118 119 }}} 120 119 121 == Use c++ new/delete operators == 120 122 === Right === … … 131 133 free(unusedCacheEntry); 132 134 }}} 135 136 = Use const keyword instead of #define when you define constant variable = 137 === Right === 138 {{{ 139 const int defaultTileWidth = 256; 140 const int defaultTileHeigth = 256; 141 }}} 142 === Wrong === 143 {{{ 144 #define DEFAULT_TILE_W (256) 145 #define DEFAULT_TILE_H (256) 146 }}}