aboutsummaryrefslogtreecommitdiff
path: root/src/astleaf.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/astleaf.cpp8
1 files changed, 4 insertions, 4 deletions
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 ) :
27 setBoolValue( bNew ); 27 setBoolValue( bNew );
28} 28}
29 29
30AstLeaf::AstLeaf( const Location &loc, Type eType, const Bu::FString &sNew ) : 30AstLeaf::AstLeaf( const Location &loc, Type eType, const Bu::String &sNew ) :
31 AstNode( loc, eType ), 31 AstNode( loc, eType ),
32 sVal( NULL ) 32 sVal( NULL )
33{ 33{
@@ -68,12 +68,12 @@ void AstLeaf::setBoolValue( bool bNew )
68 bVal = bNew; 68 bVal = bNew;
69} 69}
70 70
71void AstLeaf::setStrValue( const Bu::FString &sNew ) 71void AstLeaf::setStrValue( const Bu::String &sNew )
72{ 72{
73 if( getDataType() != typeDataString ) 73 if( getDataType() != typeDataString )
74 throw Bu::ExceptionBase("Type is not string."); 74 throw Bu::ExceptionBase("Type is not string.");
75 if( sVal == NULL ) 75 if( sVal == NULL )
76 sVal = new Bu::FString( sNew ); 76 sVal = new Bu::String( sNew );
77 else 77 else
78 *sVal = sNew; 78 *sVal = sNew;
79} 79}
@@ -99,7 +99,7 @@ bool AstLeaf::getBoolValue() const
99 return bVal; 99 return bVal;
100} 100}
101 101
102Bu::FString &AstLeaf::getStrValue() const 102Bu::String &AstLeaf::getStrValue() const
103{ 103{
104 if( getDataType() != typeDataString ) 104 if( getDataType() != typeDataString )
105 throw Bu::ExceptionBase("Type is not string."); 105 throw Bu::ExceptionBase("Type is not string.");