Generate code using nullptr instead of NULL in wxrc
There doesn't seem to be any reason to keep compatibility with C++98 here, so use nullptr for consistency.
This commit is contained in:
parent
f27a7c5d00
commit
d03fc649ab
1 changed files with 2 additions and 2 deletions
|
|
@ -171,7 +171,7 @@ public:
|
|||
m_className +
|
||||
wxT("(") +
|
||||
*m_ancestorClassNames.begin() +
|
||||
wxT(" *parent=NULL){\n") +
|
||||
wxT(" *parent=nullptr){\n") +
|
||||
wxT(" InitWidgetsFromXRC((wxWindow *)parent);\n")
|
||||
wxT(" }\n")
|
||||
wxT("};\n")
|
||||
|
|
@ -180,7 +180,7 @@ public:
|
|||
else
|
||||
{
|
||||
file.Write(m_className + wxT("(){\n") +
|
||||
wxT(" InitWidgetsFromXRC(NULL);\n")
|
||||
wxT(" InitWidgetsFromXRC(nullptr);\n")
|
||||
wxT(" }\n")
|
||||
wxT("};\n"));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue