diff options
author | Colin Snover | 2017-06-08 11:48:30 -0500 |
---|---|---|
committer | Colin Snover | 2017-06-08 20:04:37 -0500 |
commit | d7e5e5f99596d5f7bccfd27db5c8e7decc8778a6 (patch) | |
tree | 9533875a1f40641b9027cda5f92b1745dab93bec | |
parent | 58c83dcd140137cf5c5808a95e7b0711fa556933 (diff) | |
download | scummvm-rg350-d7e5e5f99596d5f7bccfd27db5c8e7decc8778a6.tar.gz scummvm-rg350-d7e5e5f99596d5f7bccfd27db5c8e7decc8778a6.tar.bz2 scummvm-rg350-d7e5e5f99596d5f7bccfd27db5c8e7decc8778a6.zip |
COMMON: Take immutable reference in SpanOwner copy assignment
Thanks again to @waltervn.
-rw-r--r-- | common/span.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/span.h b/common/span.h index e0b1d139ca..31cb7487a7 100644 --- a/common/span.h +++ b/common/span.h @@ -942,7 +942,7 @@ public: _span.allocateFromSpan(other._span); } - inline SpanOwner &operator=(SpanOwner &other) { + inline SpanOwner &operator=(const SpanOwner &other) { if (this == &other) { return *this; } |