diff --git a/src/BlockFile.h b/src/BlockFile.h index 1425754d0..8a400bb41 100644 --- a/src/BlockFile.h +++ b/src/BlockFile.h @@ -194,6 +194,7 @@ class PROFILE_DLL_API BlockFile /* not final, abstract */ { ReadLock &operator= (const ReadLock &that) { *((ReadLockBase*)this) = that; + return *this; } #endif ReadLock(ReadLock&&that) : ReadLockBase{ std::move(that) } {}