Author: cazfi Date: Sun Nov 23 04:56:38 2014 New Revision: 27116 URL: http://svn.gna.org/viewcvs/freeciv?rev=27116&view=rev Log: Instruct to use 'nullptr' in C++ code.
See patch #5128 Modified: branches/S2_5/doc/CodingStyle Modified: branches/S2_5/doc/CodingStyle URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_5/doc/CodingStyle?rev=27116&r1=27115&r2=27116&view=diff ============================================================================== --- branches/S2_5/doc/CodingStyle (original) +++ branches/S2_5/doc/CodingStyle Sun Nov 23 04:56:38 2014 @@ -580,6 +580,9 @@ in header files. It also means casts on void pointers (which should be avoided in C files) must be used in headers. +- To assign null pointer, or to compare against one, use 'NULL' in C code, + and 'nullptr' in C++ code. + - If you send patches, use "diff -u" (or "diff -r -u"). "svn diff" works correctly without extra parameters. _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits