From c435c7daa9df1b08dc85132fcd1c154bea9b69e2 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 20 Jan 2011 18:21:03 +0000 Subject: Fixes to use libbu++ Bu::String --- src/astleaf.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/astleaf.cpp') diff --git a/src/astleaf.cpp b/src/astleaf.cpp index 5182a58..c192dbf 100644 --- a/src/astleaf.cpp +++ b/src/astleaf.cpp @@ -27,7 +27,7 @@ AstLeaf::AstLeaf( const Location &loc, Type eType, bool bNew ) : setBoolValue( bNew ); } -AstLeaf::AstLeaf( const Location &loc, Type eType, const Bu::FString &sNew ) : +AstLeaf::AstLeaf( const Location &loc, Type eType, const Bu::String &sNew ) : AstNode( loc, eType ), sVal( NULL ) { @@ -68,12 +68,12 @@ void AstLeaf::setBoolValue( bool bNew ) bVal = bNew; } -void AstLeaf::setStrValue( const Bu::FString &sNew ) +void AstLeaf::setStrValue( const Bu::String &sNew ) { if( getDataType() != typeDataString ) throw Bu::ExceptionBase("Type is not string."); if( sVal == NULL ) - sVal = new Bu::FString( sNew ); + sVal = new Bu::String( sNew ); else *sVal = sNew; } @@ -99,7 +99,7 @@ bool AstLeaf::getBoolValue() const return bVal; } -Bu::FString &AstLeaf::getStrValue() const +Bu::String &AstLeaf::getStrValue() const { if( getDataType() != typeDataString ) throw Bu::ExceptionBase("Type is not string."); -- cgit v1.2.3