From 8ce0e6bb2a83e200e290f9d8ae34e45afede0a53 Mon Sep 17 00:00:00 2001 From: maartenkeijzer Date: Wed, 14 Feb 2001 14:09:16 +0000 Subject: [PATCH] Changed the return value to return what it got in --- eo/src/eoInvalidateOps.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/eo/src/eoInvalidateOps.h b/eo/src/eoInvalidateOps.h index 711456e6..f3a3b4cb 100644 --- a/eo/src/eoInvalidateOps.h +++ b/eo/src/eoInvalidateOps.h @@ -48,9 +48,12 @@ class eoInvalidateMonOp : public eoMonOp bool operator()(EOT& _eo) { if (op(_eo)) + { _eo.invalidate(); + return true; + } - return false; // we did change the thing, but it is already invalidated + return false; } private: @@ -76,9 +79,12 @@ class eoInvalidateBinOp : public eoBinOp bool operator()(EOT& _eo, const EOT& _eo2) { if (op(_eo, _eo2)) + { _eo.invalidate(); + return true; + } - return false; // we did change the thing, but it is already invalidated + return false; } private: @@ -107,8 +113,9 @@ class eoInvalidateQuadOp : public eoQuadOp { _eo1.invalidate(); _eo2.invalidate(); + return true; } - return false; // we did change the thing, but it is already invalidated + return false; } private: