Changes between Version 4 and Version 5 of EFLWebKitCodingStyle


Ignore:
Timestamp:
Jan 18, 2012 1:22:03 AM (10 years ago)
Author:
gyuyoung.kim@samsung.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • EFLWebKitCodingStyle

    v4 v5  
    66 * Place '*' operator to data type
    77 * 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.
    1011
    1112= Example =
     
    117118 delete page;
    118119}}}
     120
    119121== Use c++ new/delete operators ==
    120122=== Right ===
     
    131133 free(unusedCacheEntry);
    132134}}}
     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}}}