From 8c7e258e80c632c2d1d1eaa93cef8358a898045b Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Mon, 21 Dec 2020 20:04:57 -0800 Subject: [clang-tidy] cpp: Turn reference operators to const Found with cppcoreguidelines-c-copy-assignment-signature Signed-off-by: Rosen Penev --- src/Real.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Real.cpp') diff --git a/src/Real.cpp b/src/Real.cpp index 3ac67f2..6bdb920 100644 --- a/src/Real.cpp +++ b/src/Real.cpp @@ -37,7 +37,7 @@ Real::Real(const PList::Real& d) : Node(PLIST_UINT) plist_set_real_val(_node, d.GetValue()); } -Real& Real::operator=(PList::Real& d) +Real& Real::operator=(const PList::Real& d) { plist_free(_node); _node = plist_copy(d.GetPlist()); -- cgit v1.1-32-gdbae