diff options
| author | 2020-12-21 20:04:57 -0800 | |
|---|---|---|
| committer | 2021-06-22 01:18:28 +0200 | |
| commit | 8c7e258e80c632c2d1d1eaa93cef8358a898045b (patch) | |
| tree | 850633b8c9303b52f175ffbb94a2338fec570173 /src/Uid.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/Uid.cpp')
| -rw-r--r-- | src/Uid.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Uid.cpp b/src/Uid.cpp index 204cd68..e83ed27 100644 --- a/src/Uid.cpp +++ b/src/Uid.cpp | |||
| @@ -37,7 +37,7 @@ Uid::Uid(const PList::Uid& i) : Node(PLIST_UID) | |||
| 37 | plist_set_uid_val(_node, i.GetValue()); | 37 | plist_set_uid_val(_node, i.GetValue()); |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | Uid& Uid::operator=(PList::Uid& i) | 40 | Uid& Uid::operator=(const PList::Uid& i) |
| 41 | { | 41 | { |
| 42 | plist_free(_node); | 42 | plist_free(_node); |
| 43 | _node = plist_copy(i.GetPlist()); | 43 | _node = plist_copy(i.GetPlist()); |
