ifcparse: fix missing include and const

This commit is contained in:
Dirk Olbrich
2024-02-22 20:51:02 +01:00
committed by Thomas Krijnen
parent 47a2971c65
commit eb50be5c52
3 changed files with 7 additions and 6 deletions
+3 -2
View File
@@ -20,6 +20,7 @@
#include "IfcGlobalId.h"
#include "IfcException.h"
#include "IfcLogger.h"
#include <algorithm>
#include <boost/lexical_cast.hpp>
@@ -102,10 +103,10 @@ IfcParse::IfcGlobalId::IfcGlobalId() {
#ifndef NDEBUG
std::vector<unsigned char> test_vector;
expand(string_data, test_vector);
expand(string_data_, test_vector);
boost::uuids::uuid test_uuid;
std::copy(test_vector.begin(), test_vector.end(), test_uuid.begin());
if (uuid_data != test_uuid) {
if (uuid_data_ != test_uuid) {
Logger::Message(Logger::LOG_ERROR, "Internal error generating GlobalId");
}
#endif