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 /include | |
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 'include')
-rw-r--r-- | include/plist/Array.h | 2 | ||||
-rw-r--r-- | include/plist/Boolean.h | 2 | ||||
-rw-r--r-- | include/plist/Data.h | 2 | ||||
-rw-r--r-- | include/plist/Date.h | 2 | ||||
-rw-r--r-- | include/plist/Dictionary.h | 2 | ||||
-rw-r--r-- | include/plist/Integer.h | 2 | ||||
-rw-r--r-- | include/plist/Key.h | 2 | ||||
-rw-r--r-- | include/plist/Real.h | 2 | ||||
-rw-r--r-- | include/plist/String.h | 2 | ||||
-rw-r--r-- | include/plist/Uid.h | 2 |
10 files changed, 10 insertions, 10 deletions
diff --git a/include/plist/Array.h b/include/plist/Array.h index 745b750..1b7728a 100644 --- a/include/plist/Array.h +++ b/include/plist/Array.h @@ -34,7 +34,7 @@ public : Array(Node* parent = NULL); Array(plist_t node, Node* parent = NULL); Array(const Array& a); - Array& operator=(Array& a); + Array& operator=(const Array& a); virtual ~Array(); Node* Clone() const; diff --git a/include/plist/Boolean.h b/include/plist/Boolean.h index 307a1ff..9ecbc48 100644 --- a/include/plist/Boolean.h +++ b/include/plist/Boolean.h @@ -33,7 +33,7 @@ public : Boolean(Node* parent = NULL); Boolean(plist_t node, Node* parent = NULL); Boolean(const Boolean& b); - Boolean& operator=(Boolean& b); + Boolean& operator=(const Boolean& b); Boolean(bool b); virtual ~Boolean(); diff --git a/include/plist/Data.h b/include/plist/Data.h index a100d28..b566a6c 100644 --- a/include/plist/Data.h +++ b/include/plist/Data.h @@ -34,7 +34,7 @@ public : Data(Node* parent = NULL); Data(plist_t node, Node* parent = NULL); Data(const Data& d); - Data& operator=(Data& b); + Data& operator=(const Data& b); Data(const std::vector<char>& buff); virtual ~Data(); diff --git a/include/plist/Date.h b/include/plist/Date.h index 510a349..3cfb7d1 100644 --- a/include/plist/Date.h +++ b/include/plist/Date.h @@ -35,7 +35,7 @@ public : Date(Node* parent = NULL); Date(plist_t node, Node* parent = NULL); Date(const Date& d); - Date& operator=(Date& d); + Date& operator=(const Date& d); Date(timeval t); virtual ~Date(); diff --git a/include/plist/Dictionary.h b/include/plist/Dictionary.h index 931a569..a3ac3a7 100644 --- a/include/plist/Dictionary.h +++ b/include/plist/Dictionary.h @@ -35,7 +35,7 @@ public : Dictionary(Node* parent = NULL); Dictionary(plist_t node, Node* parent = NULL); Dictionary(const Dictionary& d); - Dictionary& operator=(Dictionary& d); + Dictionary& operator=(const Dictionary& d); virtual ~Dictionary(); Node* Clone() const; diff --git a/include/plist/Integer.h b/include/plist/Integer.h index adbc39a..bdabc6f 100644 --- a/include/plist/Integer.h +++ b/include/plist/Integer.h @@ -33,7 +33,7 @@ public : Integer(Node* parent = NULL); Integer(plist_t node, Node* parent = NULL); Integer(const Integer& i); - Integer& operator=(Integer& i); + Integer& operator=(const Integer& i); Integer(uint64_t i); virtual ~Integer(); diff --git a/include/plist/Key.h b/include/plist/Key.h index e75aabc..bd5f7bc 100644 --- a/include/plist/Key.h +++ b/include/plist/Key.h @@ -34,7 +34,7 @@ public : Key(Node* parent = NULL); Key(plist_t node, Node* parent = NULL); Key(const Key& k); - Key& operator=(Key& k); + Key& operator=(const Key& k); Key(const std::string& s); virtual ~Key(); diff --git a/include/plist/Real.h b/include/plist/Real.h index c2d55f8..5afb0c0 100644 --- a/include/plist/Real.h +++ b/include/plist/Real.h @@ -33,7 +33,7 @@ public : Real(Node* parent = NULL); Real(plist_t node, Node* parent = NULL); Real(const Real& d); - Real& operator=(Real& d); + Real& operator=(const Real& d); Real(double d); virtual ~Real(); diff --git a/include/plist/String.h b/include/plist/String.h index 80290b3..9aba16b 100644 --- a/include/plist/String.h +++ b/include/plist/String.h @@ -34,7 +34,7 @@ public : String(Node* parent = NULL); String(plist_t node, Node* parent = NULL); String(const String& s); - String& operator=(String& s); + String& operator=(const String& s); String(const std::string& s); virtual ~String(); diff --git a/include/plist/Uid.h b/include/plist/Uid.h index 2d8375b..af6e51d 100644 --- a/include/plist/Uid.h +++ b/include/plist/Uid.h @@ -33,7 +33,7 @@ public : Uid(Node* parent = NULL); Uid(plist_t node, Node* parent = NULL); Uid(const Uid& i); - Uid& operator=(Uid& i); + Uid& operator=(const Uid& i); Uid(uint64_t i); virtual ~Uid(); |