From 0fe3a1122ee79ff48f4d66d76368f2229dd96893 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 8 Jan 2020 15:59:48 +0000 Subject: [PATCH] Add missing return value on assignment operator --- renderdoc/core/bit_flag_iterator.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/renderdoc/core/bit_flag_iterator.h b/renderdoc/core/bit_flag_iterator.h index 7ccdfa1b0..5e186b270 100644 --- a/renderdoc/core/bit_flag_iterator.h +++ b/renderdoc/core/bit_flag_iterator.h @@ -45,5 +45,9 @@ public: } inline bool operator==(const BitFlagIterator &rhs) const { return flags == rhs.flags; } inline bool operator!=(const BitFlagIterator &rhs) const { return flags != rhs.flags; } - inline BitFlagIterator &operator=(const BitFlagIterator &rhs) { flags = rhs.flags; } + inline BitFlagIterator &operator=(const BitFlagIterator &rhs) + { + flags = rhs.flags; + return *this; + } };