diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:21:03 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:21:03 +0000 |
commit | c435c7daa9df1b08dc85132fcd1c154bea9b69e2 (patch) | |
tree | 5537f3c91a67b35c4c8aa918b708b7e4aad8f146 /src/astleaf.cpp | |
parent | 59690513123de8904eef2a03fe7fcaaed98b1b7b (diff) | |
download | build-c435c7daa9df1b08dc85132fcd1c154bea9b69e2.tar.gz build-c435c7daa9df1b08dc85132fcd1c154bea9b69e2.tar.bz2 build-c435c7daa9df1b08dc85132fcd1c154bea9b69e2.tar.xz build-c435c7daa9df1b08dc85132fcd1c154bea9b69e2.zip |
Fixes to use libbu++ Bu::String
Diffstat (limited to '')
-rw-r--r-- | src/astleaf.cpp | 8 |
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 | ||
30 | AstLeaf::AstLeaf( const Location &loc, Type eType, const Bu::FString &sNew ) : | 30 | AstLeaf::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 | ||
71 | void AstLeaf::setStrValue( const Bu::FString &sNew ) | 71 | void 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 | ||
102 | Bu::FString &AstLeaf::getStrValue() const | 102 | Bu::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."); |