summaryrefslogtreecommitdiffstats
path: root/src/Array.cpp
diff options
context:
space:
mode:
authorGravatar Rosen Penev2020-12-21 20:04:57 -0800
committerGravatar Nikias Bassen2021-06-22 01:18:28 +0200
commit8c7e258e80c632c2d1d1eaa93cef8358a898045b (patch)
tree850633b8c9303b52f175ffbb94a2338fec570173 /src/Array.cpp
parent904cbea78fb91438eafc867ccd8a9f9ab66eb5ec (diff)
downloadlibplist-8c7e258e80c632c2d1d1eaa93cef8358a898045b.tar.gz
libplist-8c7e258e80c632c2d1d1eaa93cef8358a898045b.tar.bz2
[clang-tidy] cpp: Turn reference operators to const
Found with cppcoreguidelines-c-copy-assignment-signature Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/Array.cpp')
-rw-r--r--src/Array.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Array.cpp b/src/Array.cpp
index 22c254b..8838e5b 100644
--- a/src/Array.cpp
+++ b/src/Array.cpp
@@ -58,7 +58,7 @@ Array::Array(const PList::Array& a)
array_fill(this, _array, _node);
}
-Array& Array::operator=(PList::Array& a)
+Array& Array::operator=(const PList::Array& a)
{
plist_free(_node);
for (unsigned int it = 0; it < _array.size(); it++)