diff options
Diffstat (limited to 'src/tafwriter.cpp')
-rw-r--r-- | src/tafwriter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tafwriter.cpp b/src/tafwriter.cpp index 8e5fcdc..b0f5def 100644 --- a/src/tafwriter.cpp +++ b/src/tafwriter.cpp | |||
@@ -58,7 +58,7 @@ void Bu::TafWriter::writeGroup( const Bu::TafGroup *pRoot ) | |||
58 | void Bu::TafWriter::writeProperty( const Bu::TafProperty *pProp ) | 58 | void Bu::TafWriter::writeProperty( const Bu::TafProperty *pProp ) |
59 | { | 59 | { |
60 | ident(); | 60 | ident(); |
61 | if( pProp->getName().getStr() != NULL && pProp->getName() != "" ) | 61 | if( !pProp->getName().isEmpty() ) |
62 | { | 62 | { |
63 | writeString( pProp->getName() ); | 63 | writeString( pProp->getName() ); |
64 | sOut.write("=", 1 ); | 64 | sOut.write("=", 1 ); |
@@ -90,8 +90,6 @@ void Bu::TafWriter::writeComment( const Bu::TafComment *pComment ) | |||
90 | 90 | ||
91 | void Bu::TafWriter::writeString( const Bu::FString &str ) | 91 | void Bu::TafWriter::writeString( const Bu::FString &str ) |
92 | { | 92 | { |
93 | if( str.getStr() == NULL ) | ||
94 | return; | ||
95 | sOut.write("\"", 1 ); | 93 | sOut.write("\"", 1 ); |
96 | for( Bu::FString::const_iterator s = str.begin(); s != str.end(); s++ ) | 94 | for( Bu::FString::const_iterator s = str.begin(); s != str.end(); s++ ) |
97 | { | 95 | { |