summaryrefslogtreecommitdiffstats
path: root/include
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 /include
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 'include')
-rw-r--r--include/plist/Array.h2
-rw-r--r--include/plist/Boolean.h2
-rw-r--r--include/plist/Data.h2
-rw-r--r--include/plist/Date.h2
-rw-r--r--include/plist/Dictionary.h2
-rw-r--r--include/plist/Integer.h2
-rw-r--r--include/plist/Key.h2
-rw-r--r--include/plist/Real.h2
-rw-r--r--include/plist/String.h2
-rw-r--r--include/plist/Uid.h2
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 :
34 Array(Node* parent = NULL); 34 Array(Node* parent = NULL);
35 Array(plist_t node, Node* parent = NULL); 35 Array(plist_t node, Node* parent = NULL);
36 Array(const Array& a); 36 Array(const Array& a);
37 Array& operator=(Array& a); 37 Array& operator=(const Array& a);
38 virtual ~Array(); 38 virtual ~Array();
39 39
40 Node* Clone() const; 40 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 :
33 Boolean(Node* parent = NULL); 33 Boolean(Node* parent = NULL);
34 Boolean(plist_t node, Node* parent = NULL); 34 Boolean(plist_t node, Node* parent = NULL);
35 Boolean(const Boolean& b); 35 Boolean(const Boolean& b);
36 Boolean& operator=(Boolean& b); 36 Boolean& operator=(const Boolean& b);
37 Boolean(bool b); 37 Boolean(bool b);
38 virtual ~Boolean(); 38 virtual ~Boolean();
39 39
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 :
34 Data(Node* parent = NULL); 34 Data(Node* parent = NULL);
35 Data(plist_t node, Node* parent = NULL); 35 Data(plist_t node, Node* parent = NULL);
36 Data(const Data& d); 36 Data(const Data& d);
37 Data& operator=(Data& b); 37 Data& operator=(const Data& b);
38 Data(const std::vector<char>& buff); 38 Data(const std::vector<char>& buff);
39 virtual ~Data(); 39 virtual ~Data();
40 40
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 :
35 Date(Node* parent = NULL); 35 Date(Node* parent = NULL);
36 Date(plist_t node, Node* parent = NULL); 36 Date(plist_t node, Node* parent = NULL);
37 Date(const Date& d); 37 Date(const Date& d);
38 Date& operator=(Date& d); 38 Date& operator=(const Date& d);
39 Date(timeval t); 39 Date(timeval t);
40 virtual ~Date(); 40 virtual ~Date();
41 41
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 :
35 Dictionary(Node* parent = NULL); 35 Dictionary(Node* parent = NULL);
36 Dictionary(plist_t node, Node* parent = NULL); 36 Dictionary(plist_t node, Node* parent = NULL);
37 Dictionary(const Dictionary& d); 37 Dictionary(const Dictionary& d);
38 Dictionary& operator=(Dictionary& d); 38 Dictionary& operator=(const Dictionary& d);
39 virtual ~Dictionary(); 39 virtual ~Dictionary();
40 40
41 Node* Clone() const; 41 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 :
33 Integer(Node* parent = NULL); 33 Integer(Node* parent = NULL);
34 Integer(plist_t node, Node* parent = NULL); 34 Integer(plist_t node, Node* parent = NULL);
35 Integer(const Integer& i); 35 Integer(const Integer& i);
36 Integer& operator=(Integer& i); 36 Integer& operator=(const Integer& i);
37 Integer(uint64_t i); 37 Integer(uint64_t i);
38 virtual ~Integer(); 38 virtual ~Integer();
39 39
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 :
34 Key(Node* parent = NULL); 34 Key(Node* parent = NULL);
35 Key(plist_t node, Node* parent = NULL); 35 Key(plist_t node, Node* parent = NULL);
36 Key(const Key& k); 36 Key(const Key& k);
37 Key& operator=(Key& k); 37 Key& operator=(const Key& k);
38 Key(const std::string& s); 38 Key(const std::string& s);
39 virtual ~Key(); 39 virtual ~Key();
40 40
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 :
33 Real(Node* parent = NULL); 33 Real(Node* parent = NULL);
34 Real(plist_t node, Node* parent = NULL); 34 Real(plist_t node, Node* parent = NULL);
35 Real(const Real& d); 35 Real(const Real& d);
36 Real& operator=(Real& d); 36 Real& operator=(const Real& d);
37 Real(double d); 37 Real(double d);
38 virtual ~Real(); 38 virtual ~Real();
39 39
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 :
34 String(Node* parent = NULL); 34 String(Node* parent = NULL);
35 String(plist_t node, Node* parent = NULL); 35 String(plist_t node, Node* parent = NULL);
36 String(const String& s); 36 String(const String& s);
37 String& operator=(String& s); 37 String& operator=(const String& s);
38 String(const std::string& s); 38 String(const std::string& s);
39 virtual ~String(); 39 virtual ~String();
40 40
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 :
33 Uid(Node* parent = NULL); 33 Uid(Node* parent = NULL);
34 Uid(plist_t node, Node* parent = NULL); 34 Uid(plist_t node, Node* parent = NULL);
35 Uid(const Uid& i); 35 Uid(const Uid& i);
36 Uid& operator=(Uid& i); 36 Uid& operator=(const Uid& i);
37 Uid(uint64_t i); 37 Uid(uint64_t i);
38 virtual ~Uid(); 38 virtual ~Uid();
39 39