Skip to content

Commit

Permalink
Revert return statements
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Jul 1, 2024
1 parent 4a03f39 commit 75157f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ui/action/handler/antares-study/constraint/create.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ bool Create::performWL(Context& ctx)
// ctx.constraint->type(pType);
}
ctx.autoselectConstraints.push_back(ctx.constraint);
return (ctx.constraint);
return (ctx.constraint != nullptr);
}

void Create::createActionsForAStandardConstraintCopy(Context&)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ bool Create::performWL(Context& ctx)
if (pInfos.behavior == bhOverwrite)
(ctx.cluster)->reset();
}
return (ctx.area);
return (ctx.area != nullptr);
}
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ int AreaLinkRenderer::height() const

bool AreaLinkRenderer::valid() const
{
return (pMatrix);
return (nullptr != pMatrix);
}

wxString AreaLinkRenderer::columnCaption(int colIndx) const
Expand Down

0 comments on commit 75157f1

Please sign in to comment.