From 70663374492a1f7e9554ea9b1b25eb11487f4474 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Mon, 12 May 2014 13:56:41 +0000 Subject: [PATCH] Update IfcParseExamples --- src/examples/IfcParseExamples.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/examples/IfcParseExamples.cpp b/src/examples/IfcParseExamples.cpp index 71092e59b4..61da2cdb9f 100644 --- a/src/examples/IfcParseExamples.cpp +++ b/src/examples/IfcParseExamples.cpp @@ -54,17 +54,17 @@ int main(int argc, char** argv) { // we need to cast them to IfcWindows. Since these properties // are optional we need to make sure the properties are // defined for the window in question before accessing them. - IfcBuildingElement::list elements = file.EntitiesByType(); + IfcBuildingElement::list::ptr elements = file.EntitiesByType(); std::cout << "Found " << elements->Size() << " elements in " << argv[1] << ":" << std::endl; - for ( IfcBuildingElement::it it = elements->begin(); it != elements->end(); ++ it ) { + for ( IfcBuildingElement::list::it it = elements->begin(); it != elements->end(); ++ it ) { - const IfcBuildingElement::ptr element = *it; + const IfcBuildingElement* element = *it; std::cout << element->entity->toString() << std::endl; if ( element->is(IfcWindow::Class()) ) { - const IfcWindow::ptr window = (IfcWindow*)element; + const IfcWindow* window = (IfcWindow*)element; if ( window->hasOverallWidth() && window->hasOverallHeight() ) { const double area = window->OverallWidth()*window->OverallHeight();