macro processor: c++ modernization

issue#70
Houtan Bastani 2020-01-21 15:42:35 +01:00
parent fa2f6c9206
commit c6a52fd778
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 2 additions and 4 deletions

View File

@ -43,8 +43,7 @@ Environment::define(FunctionPtr func, ExpressionPtr value)
ExpressionPtr
Environment::getVariable(const string &name) const
{
auto it = variables.find(name);
if (it != variables.end())
if (auto it = variables.find(name); it != variables.end())
return it->second;
if (!parent)
@ -56,8 +55,7 @@ Environment::getVariable(const string &name) const
tuple<FunctionPtr, ExpressionPtr>
Environment::getFunction(const string &name) const
{
auto it = functions.find(name);
if (it != functions.end())
if (auto it = functions.find(name); it != functions.end())
return it->second;
if (!parent)