Fix build for MSVC9.

This commit is contained in:
Jonathan Beck
2009-10-28 17:57:52 +01:00
parent a129688a88
commit 1bc333972b
16 changed files with 44 additions and 10 deletions
+3 -2
View File
@@ -58,7 +58,7 @@ Array::Array(PList::Array& a) : Structure()
Array& Array::operator=(PList::Array& a)
{
plist_free(_node);
for (int it = 0; it < _array.size(); it++)
for (unsigned int it = 0; it < _array.size(); it++)
{
delete _array.at(it);
}
@@ -72,11 +72,12 @@ Array& Array::operator=(PList::Array& a)
plist_t subnode = plist_array_get_item(_node, i);
_array.push_back( Utils::FromPlist(subnode, this) );
}
return *this;
}
Array::~Array()
{
for (int it = 0; it < _array.size(); it++)
for (unsigned int it = 0; it < _array.size(); it++)
{
delete (_array.at(it));
}