summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Array.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Array.cpp b/src/Array.cpp
index 8838e5b..65ffaa7 100644
--- a/src/Array.cpp
+++ b/src/Array.cpp
@@ -61,8 +61,7 @@ Array::Array(const PList::Array& a)
Array& Array::operator=(const PList::Array& a)
{
plist_free(_node);
- for (unsigned int it = 0; it < _array.size(); it++)
- {
+ for (size_t it = 0; it < _array.size(); it++) {
delete _array.at(it);
}
_array.clear();
@@ -73,8 +72,7 @@ Array& Array::operator=(const PList::Array& a)
Array::~Array()
{
- for (unsigned int it = 0; it < _array.size(); it++)
- {
+ for (size_t it = 0; it < _array.size(); it++) {
delete (_array.at(it));
}
_array.clear();