From 31b3562c020843ce3f6900f0d02d4679710defd7 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Tue, 13 Sep 2005 15:00:34 +0000 Subject: [PATCH] Pone BTree en el stack --- src/main.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index c22dde9..c405fba 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5,14 +5,10 @@ int main (int argc, char *argv[]) { - BTree *tree; + BTree tree ("test.idx", 1024); ClaveFija c(5); - tree = new BTree ("test.idx", 1024); - - tree->AddKey (c); - - delete tree; + tree.AddKey (c); return 0; } -- 2.43.0