diff options
author | Rosen Penev | 2020-12-21 20:04:57 -0800 |
---|---|---|
committer | Nikias Bassen | 2021-06-22 01:18:28 +0200 |
commit | 8c7e258e80c632c2d1d1eaa93cef8358a898045b (patch) | |
tree | 850633b8c9303b52f175ffbb94a2338fec570173 /src/Key.cpp | |
parent | 904cbea78fb91438eafc867ccd8a9f9ab66eb5ec (diff) | |
download | libplist-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/Key.cpp')
-rw-r--r-- | src/Key.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Key.cpp b/src/Key.cpp index 8c96e59..8ba497a 100644 --- a/src/Key.cpp +++ b/src/Key.cpp @@ -37,7 +37,7 @@ Key::Key(const PList::Key& k) : Node(PLIST_UINT) plist_set_key_val(_node, k.GetValue().c_str()); } -Key& Key::operator=(PList::Key& k) +Key& Key::operator=(const PList::Key& k) { plist_free(_node); _node = plist_copy(k.GetPlist()); |