From f5aca1a1b402bd7ebc944dc6e6fe65828d863365 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 20 Jan 2011 02:14:08 +0000 Subject: Bu::FString is now String, and there's a shell script to fix any other programs that were using fstring, I hope. --- src/tests/heap.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/tests/heap.cpp') diff --git a/src/tests/heap.cpp b/src/tests/heap.cpp index 7538936..3576f25 100644 --- a/src/tests/heap.cpp +++ b/src/tests/heap.cpp @@ -10,7 +10,7 @@ #include "bu/formatter.h" #include "bu/heap.h" -#include "bu/fstring.h" +#include "bu/string.h" #include "bu/file.h" typedef struct num @@ -38,15 +38,15 @@ typedef struct num } } num; -void printHeap( Bu::Heap &h, int j ) +void printHeap( Bu::Heap &h, int j ) { // return; - Bu::FString sFName; + Bu::String sFName; sFName.format("graph-step-%02d.dot", j ); Bu::File fOut( sFName, Bu::File::WriteNew ); Bu::Formatter f( fOut ); f << "Graph step: " << j << ", total size: " << h.getSize() << f.nl; - for( Bu::Heap::iterator i = h.begin(); i; i++ ) + for( Bu::Heap::iterator i = h.begin(); i; i++ ) { f << *i << f.nl; } @@ -73,7 +73,7 @@ int main() } printf("\n"); */ - Bu::Heap hStr; + Bu::Heap hStr; int j = 0; hStr.enqueue("George"); @@ -100,7 +100,7 @@ int main() } printf("\n"); - Bu::List lStr; + Bu::List lStr; lStr.insertSorted("George"); lStr.insertSorted("George"); @@ -110,7 +110,7 @@ int main() lStr.insertSorted("Brianna"); lStr.insertSorted("Kate"); lStr.insertSorted("Soggy"); - for( Bu::List::iterator i = lStr.begin(); i; i++ ) + for( Bu::List::iterator i = lStr.begin(); i; i++ ) { printf("\"%s\" ", (*i).getStr() ); } -- cgit v1.2.3