mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
*Core: Fixed T& SortedArrayMap::Add(K)
git-svn-id: svn://ultimatepp.org/upp/trunk@7132 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
a4e28c7be8
commit
3ca7214a63
1 changed files with 3 additions and 4 deletions
|
|
@ -149,10 +149,9 @@ void Slaved_InArray__<T>::Remove(int blki, int pos, int n)
|
|||
template <class T>
|
||||
void Slaved_InArray__<T>::AddFirst()
|
||||
{
|
||||
if(res)
|
||||
data.iv.data.Add().Add(res);
|
||||
else
|
||||
data.iv.data.Add().Add();
|
||||
if(!res)
|
||||
res = new T;
|
||||
data.iv.data.Add().Add(res);
|
||||
}
|
||||
|
||||
template <class K, class T, class Less>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue