Use std::string instead of char* for IfcGeomObjects::Init()

This commit is contained in:
Thomas Krijnen
2011-12-01 11:19:27 +00:00
parent 1a40a9f78c
commit f6da8285f7
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -432,7 +432,7 @@ const IfcGeomObjects::IfcObject* IfcGeomObjects::GetObject(int id) {
const IfcGeomObjects::IfcGeomObject* IfcGeomObjects::Get() {
return current_geom_obj;
}
bool IfcGeomObjects::Init(const char* fn) {
bool IfcGeomObjects::Init(const std::string fn) {
return IfcGeomObjects::Init(fn, 0, 0);
}
bool _Init() {
@@ -449,7 +449,7 @@ bool _Init() {
total = shapereps->Size();
return true;
}
bool IfcGeomObjects::Init(const char* fn, std::ostream* log1, std::ostream* log2) {
bool IfcGeomObjects::Init(const std::string fn, std::ostream* log1, std::ostream* log2) {
Ifc::SetOutput(log1,log2);
if ( !Ifc::Init(fn) ) return false;
return _Init();