Another SimpleVector removed.
This commit is contained in:
@ -28,7 +28,6 @@ namespace dw {
|
||||
AlignedTextblock::List::List ()
|
||||
{
|
||||
textblocks = new lout::misc::SimpleVector <AlignedTextblock*> (4);
|
||||
values = new lout::misc::SimpleVector <int> (4);
|
||||
maxValue = 0;
|
||||
refCount = 0;
|
||||
}
|
||||
@ -36,13 +35,12 @@ AlignedTextblock::List::List ()
|
||||
AlignedTextblock::List::~List ()
|
||||
{
|
||||
delete textblocks;
|
||||
delete values;
|
||||
}
|
||||
|
||||
int AlignedTextblock::List::add(AlignedTextblock *textblock)
|
||||
{
|
||||
textblocks->increase ();
|
||||
values->increase ();
|
||||
values.push_back ( 0 );
|
||||
textblocks->set (textblocks->size () - 1, textblock);
|
||||
refCount++;
|
||||
return textblocks->size () - 1;
|
||||
|
||||
Reference in New Issue
Block a user