From d7e5e5f99596d5f7bccfd27db5c8e7decc8778a6 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Thu, 8 Jun 2017 11:48:30 -0500 Subject: COMMON: Take immutable reference in SpanOwner copy assignment Thanks again to @waltervn. --- common/span.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3