Changed the return value to return what it got in
This commit is contained in:
parent
3a9b5a0e7e
commit
8ce0e6bb2a
1 changed files with 10 additions and 3 deletions
|
|
@ -48,9 +48,12 @@ class eoInvalidateMonOp : public eoMonOp<EOT>
|
||||||
bool operator()(EOT& _eo)
|
bool operator()(EOT& _eo)
|
||||||
{
|
{
|
||||||
if (op(_eo))
|
if (op(_eo))
|
||||||
|
{
|
||||||
_eo.invalidate();
|
_eo.invalidate();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false; // we did change the thing, but it is already invalidated
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
@ -76,9 +79,12 @@ class eoInvalidateBinOp : public eoBinOp<EOT>
|
||||||
bool operator()(EOT& _eo, const EOT& _eo2)
|
bool operator()(EOT& _eo, const EOT& _eo2)
|
||||||
{
|
{
|
||||||
if (op(_eo, _eo2))
|
if (op(_eo, _eo2))
|
||||||
|
{
|
||||||
_eo.invalidate();
|
_eo.invalidate();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false; // we did change the thing, but it is already invalidated
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
@ -107,8 +113,9 @@ class eoInvalidateQuadOp : public eoQuadOp<EOT>
|
||||||
{
|
{
|
||||||
_eo1.invalidate();
|
_eo1.invalidate();
|
||||||
_eo2.invalidate();
|
_eo2.invalidate();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return false; // we did change the thing, but it is already invalidated
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
Reference in a new issue