Skip to content
Permalink
Browse files

Use != nullptr instead of !! trick

  • Loading branch information...
jhasse committed Feb 15, 2019
1 parent b61d087 commit b96cac869e95784c55d36097dbce7281c9e4950e
Showing with 2 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +1 −1 src/codegen/codegen.cpp
@@ -20,3 +20,4 @@ install/windows/*.exe
/_build/
/_install/
/compile_commands.json
/.ccls-cache/
@@ -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
// can be surrounded by the template content without any white spaces now.
bool foundLeftCurlyBracket = false;
bool saveChild = (!!child);
bool saveChild = (child != nullptr);

if (!m_in.Eof())
{

0 comments on commit b96cac8

Please sign in to comment.
You can’t perform that action at this time.