X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=testTextCollection.cpp;fp=testTextCollection.cpp;h=a19d2b20fc2dbddc539d1d1883f37b176469fb81;hb=89dc22aee980ba16f757cd9a7f77478c2da50051;hp=82bf79e2d7587e296a929017480849e8afbde671;hpb=443151511a86083b21c1c06eb610f86b3aed35be;p=SXSI%2FTextCollection.git diff --git a/testTextCollection.cpp b/testTextCollection.cpp index 82bf79e..a19d2b2 100644 --- a/testTextCollection.cpp +++ b/testTextCollection.cpp @@ -40,7 +40,7 @@ int main() int i = 0 ,j = 0; int heap_base = HeapProfiler::GetHeapConsumption(); std::cerr << "Initial heap usage : " << heap_base << "\n"; - TextCollectionBuilder *tcb = new TextCollectionBuilder(5); + TextCollectionBuilder *tcb = TextCollectionBuilder::create(5); heap_base = HeapProfiler::GetHeapConsumption (); std::cerr << "Heap usage after InitTextCollection : " << heap_base << "\n"; Tools::StartTimer();