mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 01:23:03 +01:00
added missing operator= to ObjectsArray
This commit is contained in:
parent
928d127a3c
commit
d49440889c
@ -252,6 +252,25 @@ namespace Firebird
|
|||||||
}
|
}
|
||||||
inherited::clear();
|
inherited::clear();
|
||||||
}
|
}
|
||||||
|
ObjectsArray<T, A>& operator =(const ObjectsArray<T, A>& L)
|
||||||
|
{
|
||||||
|
while (count > L.count)
|
||||||
|
{
|
||||||
|
delete inherited::pop();
|
||||||
|
}
|
||||||
|
for (size_t i = 0; i < L.count; i++)
|
||||||
|
{
|
||||||
|
if (i < count)
|
||||||
|
{
|
||||||
|
(*this)[i] = L[i];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
add(L[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Template to convert object value to index directly
|
// Template to convert object value to index directly
|
||||||
|
Loading…
Reference in New Issue
Block a user