diff options
author | Willem Jan Palenstijn | 2011-12-03 13:59:40 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-12-03 13:59:40 +0100 |
commit | 38098a0d0cf659ad6fa592528827e524e18c42f9 (patch) | |
tree | 2fad452ffd7fe627946c053a096dd768bddf214a /engines | |
parent | b2fdf79c4a7fa1af38642e1435ac2d38a2d6ebad (diff) | |
download | scummvm-rg350-38098a0d0cf659ad6fa592528827e524e18c42f9.tar.gz scummvm-rg350-38098a0d0cf659ad6fa592528827e524e18c42f9.tar.bz2 scummvm-rg350-38098a0d0cf659ad6fa592528827e524e18c42f9.zip |
DREAMWEB: Make SegmentRef::operator= protected for extra immutability
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dreamweb/runtime.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/dreamweb/runtime.h b/engines/dreamweb/runtime.h index e700d29a49..002f2ab8f2 100644 --- a/engines/dreamweb/runtime.h +++ b/engines/dreamweb/runtime.h @@ -182,6 +182,14 @@ public: assert(_segment != 0); return _segment->ptr(index, size); } + +protected: + SegmentRef &operator=(const SegmentRef &seg) { + _value = seg._value; + _segment = seg._segment; + return *this; + } + }; class MutableSegmentRef : public SegmentRef { |