Added SWCSA
[SXSI/TextCollection.git] / testTextCollection.cpp
index 82bf79e..a19d2b2 100644 (file)
@@ -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();