Fix missing return values in bitset_utils.h
This patch adds the missing return value *this in the operator=
of class BitSetT
BUG=angleproject:1814
Change-Id: I758d62e80e4ade92aac64315f1808ca1eabdc787
Reviewed-on: https://chromium-review.googlesource.com/487423
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
diff --git a/src/common/bitset_utils.h b/src/common/bitset_utils.h
index 14b050d..7276735 100644
--- a/src/common/bitset_utils.h
+++ b/src/common/bitset_utils.h
@@ -30,7 +30,11 @@
{
public:
~Reference() {}
- Reference &operator=(bool x) { mParent->set(mBit, x); }
+ Reference &operator=(bool x)
+ {
+ mParent->set(mBit, x);
+ return *this;
+ }
operator bool() const { return mParent->test(mBit); }
private: