From 083dc222bdf2a80bc782a26a84579f1529f1bc85 Mon Sep 17 00:00:00 2001 From: Dan Macumber Date: Mon, 4 Aug 2014 19:30:33 -0600 Subject: [PATCH] Back porting changes to non-c++11 --- openstudiocore/src/sdd/MapGeometry.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/openstudiocore/src/sdd/MapGeometry.cpp b/openstudiocore/src/sdd/MapGeometry.cpp index bcd60571b79..62e0df68fa6 100644 --- a/openstudiocore/src/sdd/MapGeometry.cpp +++ b/openstudiocore/src/sdd/MapGeometry.cpp @@ -1607,7 +1607,7 @@ namespace sdd { std::vector surfaces = building.model().getConcreteModelObjects(); std::sort(surfaces.begin(), surfaces.end(), WorkspaceObjectNameLess()); std::string surfacesWithoutSpace; - for (const model::Surface& surface : surfaces){ + BOOST_FOREACH(const model::Surface& surface, surfaces){ if (!surface.space()){ surfacesWithoutSpace += " '" + surface.name().get() + "',"; } @@ -1622,7 +1622,7 @@ namespace sdd { std::vector subSurfaces = building.model().getConcreteModelObjects(); std::sort(subSurfaces.begin(), subSurfaces.end(), WorkspaceObjectNameLess()); std::string subSurfacesWithoutSurface; - for (const model::SubSurface& subSurface : subSurfaces){ + BOOST_FOREACH(const model::SubSurface& subSurface, subSurfaces){ if (!subSurface.surface()){ subSurfacesWithoutSurface += " '" + subSurface.name().get() + "',"; } @@ -1793,11 +1793,10 @@ namespace sdd { // translate surfaces std::vector surfaces = space.surfaces(); std::sort(surfaces.begin(), surfaces.end(), WorkspaceObjectNameLess()); - - BOOST_FOREACH(const model::Surface& surface, surfaces){ unsigned numFloors = 0; unsigned numWalls = 0; unsigned numRoofCeilings = 0; + BOOST_FOREACH(const model::Surface& surface, surfaces){ std::string surfaceType = surface.surfaceType(); if (istringEqual("Wall", surfaceType)){ ++numWalls;