Skip to content

Commit 497e5f4

Browse files
committed
Fix dangling two step construction link
Just explain what it is briefly instead of linking to a non-existent section which was probably supposed to be added back in fed2e85 (Revise, update and shorten the coding guidelines., 2014-03-30) but never was. Closes #88.
1 parent 9f948f1 commit 497e5f4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

develop/coding-guidelines/index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,10 @@ e.g. `false` for functions returning `bool` or `NULL` for the functions
622622
returning pointers to objects. The special case of constructors, which have no
623623
return value, is typically handled by providing an `IsOk()` method indicating
624624
whether the object was constructed successfully and, for all
625-
`wxWindow`-derived classes, also by using [two-step construction](#twostep_ctor).
625+
`wxWindow`-derived classes, also by providing a default constructor (which
626+
never fails) and a function called, by convention, `Create()` performing the
627+
same initialization as is done by the non-default ctor, but returning a
628+
boolean value indicating whether it succeeded or failed.
626629

627630

628631
<a name="no_rtti"></a>

0 commit comments

Comments
 (0)