Remove BOM in Interface.h

Remove dependency on nullptr for older compilers
This commit is contained in:
Thomas Krijnen
2012-12-31 13:41:52 +00:00
parent e2bb18476d
commit b11f5929bf
2 changed files with 7 additions and 7 deletions
+6 -6
View File
@@ -92,11 +92,11 @@ IfcCharacterDecoder::IfcCharacterDecoder(IfcParse::File* f) {
#ifdef HAVE_ICU
if (destination) ucnv_close(destination);
if (compatibility_converter) ucnv_close(compatibility_converter);
destination = nullptr;
compatibility_converter = nullptr;
destination = 0;
compatibility_converter = 0;
if (mode == DEFAULT) {
destination = ucnv_open(nullptr, &status);
destination = ucnv_open(0, &status);
} else if (mode == UTF8) {
destination = ucnv_open("utf-8", &status);
} else if (mode == LATIN) {
@@ -113,9 +113,9 @@ IfcCharacterDecoder::~IfcCharacterDecoder() {
if ( destination ) ucnv_close(destination);
if ( converter ) ucnv_close(converter);
if ( compatibility_converter ) ucnv_close(compatibility_converter);
destination = nullptr;
converter = nullptr;
compatibility_converter = nullptr;
destination = 0;
converter = 0;
compatibility_converter = 0;
#endif
}
IfcCharacterDecoder::operator std::string() {
+1 -1
View File
@@ -1,4 +1,4 @@
/********************************************************************************
/********************************************************************************
* *
* This file is part of IfcOpenShell. *
* *