Serialized.setFile: use file ref instead of pointer for safety

This commit is contained in:
Andrej730
2026-07-24 19:47:11 +05:00
parent 310eaedc8e
commit 34f8a2c54e
17 changed files with 27 additions and 27 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ class JsonSerializer : public Serializer {
}
implementation_->finalize();
}
void setFile(ifcopenshell::file*) { throw ifcopenshell::exception("Should be supplied on construction"); }
void setFile(ifcopenshell::file&) { throw ifcopenshell::exception("Should be supplied on construction"); }
};
#endif