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/variant.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/variant.cpp') diff --git a/src/variant.cpp b/src/variant.cpp index a239e0f..a23a422 100644 --- a/src/variant.cpp +++ b/src/variant.cpp @@ -9,7 +9,7 @@ namespace Bu { - Formatter &operator<<( Formatter &f, const FString &s ); + Formatter &operator<<( Formatter &f, const String &s ); }; Bu::VariantTypeRoot::VariantTypeRoot() @@ -37,7 +37,7 @@ Bu::Variant::Variant( const Variant &v ) : Bu::Variant::Variant( const char *t ) : pCore( NULL ) { - set( Bu::FString( t ) ); + set( Bu::String( t ) ); } Bu::Variant::~Variant() @@ -54,7 +54,7 @@ bool Bu::Variant::isSet() const return pCore != NULL; } -Bu::FString Bu::Variant::toString() const +Bu::String Bu::Variant::toString() const { if( !pCore ) return "***NO DATA***"; @@ -90,14 +90,14 @@ Bu::Formatter &Bu::operator<<( Bu::Formatter &f, const Bu::Variant &v ) return f << v.toString(); } -template<> Bu::FString Bu::VariantType::toString() const +template<> Bu::String Bu::VariantType::toString() const { - Bu::FString s; + Bu::String s; s.format("%d", data ); return s; } -template<> Bu::FString Bu::VariantType::toString() const +template<> Bu::String Bu::VariantType::toString() const { return data?"true":"false"; } -- cgit v1.2.3