Skip to content

Commit

Permalink
Use != nullptr instead of !! trick
Browse files Browse the repository at this point in the history
  • Loading branch information
jhasse committed Feb 15, 2019
1 parent b61d087 commit b96cac8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -20,3 +20,4 @@ install/windows/*.exe
/_build/ /_build/
/_install/ /_install/
/compile_commands.json /compile_commands.json
/.ccls-cache/
2 changes: 1 addition & 1 deletion src/codegen/codegen.cpp
Expand Up @@ -194,7 +194,7 @@ wxString TemplateParser::ParsePropertyName( wxString* child )
// property names used in templates may be encapsulated by curly brackets (e.g. ${name}) so they // property names used in templates may be encapsulated by curly brackets (e.g. ${name}) so they
// can be surrounded by the template content without any white spaces now. // can be surrounded by the template content without any white spaces now.
bool foundLeftCurlyBracket = false; bool foundLeftCurlyBracket = false;
bool saveChild = (!!child); bool saveChild = (child != nullptr);


if (!m_in.Eof()) if (!m_in.Eof())
{ {
Expand Down

0 comments on commit b96cac8

Please sign in to comment.