diff options
| author | 2025-04-06 11:34:09 +0200 | |
|---|---|---|
| committer | 2025-04-06 11:34:09 +0200 | |
| commit | 636ec1f53bf3087cdd33eb447d8a066ba80ae8f5 (patch) | |
| tree | 3b29352623176b6831aaa30af4ddde7a5d7964fe | |
| parent | a6afb2229d14981bff00de103ecec397bc067e5a (diff) | |
| download | libplist-636ec1f53bf3087cdd33eb447d8a066ba80ae8f5.tar.gz libplist-636ec1f53bf3087cdd33eb447d8a066ba80ae8f5.tar.bz2 | |
C++: Explicitly initialize base class in copy constructor
| -rw-r--r-- | src/Array.cpp | 2 | ||||
| -rw-r--r-- | src/Dictionary.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Array.cpp b/src/Array.cpp index d739c64..7051ed9 100644 --- a/src/Array.cpp +++ b/src/Array.cpp | |||
| @@ -53,7 +53,7 @@ Array::Array(plist_t node, Node* parent) : Structure(parent) | |||
| 53 | array_fill(this, _array, _node); | 53 | array_fill(this, _array, _node); |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | Array::Array(const PList::Array& a) | 56 | Array::Array(const PList::Array& a) : Structure(a.GetParent()) |
| 57 | { | 57 | { |
| 58 | _array.clear(); | 58 | _array.clear(); |
| 59 | _node = plist_copy(a.GetPlist()); | 59 | _node = plist_copy(a.GetPlist()); |
diff --git a/src/Dictionary.cpp b/src/Dictionary.cpp index f5fd239..0a909e5 100644 --- a/src/Dictionary.cpp +++ b/src/Dictionary.cpp | |||
| @@ -51,7 +51,7 @@ Dictionary::Dictionary(plist_t node, Node* parent) : Structure(parent) | |||
| 51 | dictionary_fill(this, _map, _node); | 51 | dictionary_fill(this, _map, _node); |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | Dictionary::Dictionary(const PList::Dictionary& d) | 54 | Dictionary::Dictionary(const PList::Dictionary& d) : Structure(d.GetParent()) |
| 55 | { | 55 | { |
| 56 | for (Dictionary::iterator it = _map.begin(); it != _map.end(); it++) | 56 | for (Dictionary::iterator it = _map.begin(); it != _map.end(); it++) |
| 57 | { | 57 | { |
