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:
Vadim Zeitlin 2023-04-17 18:38:03 +02:00
parent f27a7c5d00
commit d03fc649ab

View file

@ -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"));