Changes between Version 9 and Version 10 of CodingRules


Ignore:
Timestamp:
11/26/13 15:35:57 (11 years ago)
Author:
tbretz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CodingRules

    v9 v10  
    34340. Sometimes including system headers is not identical for all operating systems, comments might help
    35350. Try to avoid using dynamic allocation whenever possible: "int i=5; /* do something with i*/; /* i runs out of scope */" is preferred over "int *i = new int; *i=5; /* do something with i */; delete i;" Although this example sounds ridiculous, the same is true for every class instance you allocate.
     360. Initialization of all data members using their constructor (see example) is preferred over using assignments (optimization reasons)
    3637
    3738== Example ==