mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
Remove BOM in Interface.h
Remove dependency on nullptr for older compilers
This commit is contained in:
@@ -92,11 +92,11 @@ IfcCharacterDecoder::IfcCharacterDecoder(IfcParse::File* f) {
|
|||||||
#ifdef HAVE_ICU
|
#ifdef HAVE_ICU
|
||||||
if (destination) ucnv_close(destination);
|
if (destination) ucnv_close(destination);
|
||||||
if (compatibility_converter) ucnv_close(compatibility_converter);
|
if (compatibility_converter) ucnv_close(compatibility_converter);
|
||||||
destination = nullptr;
|
destination = 0;
|
||||||
compatibility_converter = nullptr;
|
compatibility_converter = 0;
|
||||||
|
|
||||||
if (mode == DEFAULT) {
|
if (mode == DEFAULT) {
|
||||||
destination = ucnv_open(nullptr, &status);
|
destination = ucnv_open(0, &status);
|
||||||
} else if (mode == UTF8) {
|
} else if (mode == UTF8) {
|
||||||
destination = ucnv_open("utf-8", &status);
|
destination = ucnv_open("utf-8", &status);
|
||||||
} else if (mode == LATIN) {
|
} else if (mode == LATIN) {
|
||||||
@@ -113,9 +113,9 @@ IfcCharacterDecoder::~IfcCharacterDecoder() {
|
|||||||
if ( destination ) ucnv_close(destination);
|
if ( destination ) ucnv_close(destination);
|
||||||
if ( converter ) ucnv_close(converter);
|
if ( converter ) ucnv_close(converter);
|
||||||
if ( compatibility_converter ) ucnv_close(compatibility_converter);
|
if ( compatibility_converter ) ucnv_close(compatibility_converter);
|
||||||
destination = nullptr;
|
destination = 0;
|
||||||
converter = nullptr;
|
converter = 0;
|
||||||
compatibility_converter = nullptr;
|
compatibility_converter = 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
IfcCharacterDecoder::operator std::string() {
|
IfcCharacterDecoder::operator std::string() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* *
|
* *
|
||||||
* This file is part of IfcOpenShell. *
|
* This file is part of IfcOpenShell. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
Reference in New Issue
Block a user