Skip to content

Commit 0dcc2dd

Browse files
committed
CodingGuidelines
1 parent 125cde7 commit 0dcc2dd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/CodingPractices.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,15 @@ Same here:
173173
}
174174

175175

176+
....
177+
Don't use logical operators to test for null pointers.
178+
179+
if (!net) {
180+
181+
should be
182+
183+
if (net != nullptr) {
184+
176185
....
177186

178187
Don't use malloc.

0 commit comments

Comments
 (0)