Properly constructs objects of type const RectangleInt2D in facades

This commit is contained in:
Daniel J. Hofmann 2016-02-26 12:37:59 +01:00 committed by Patrick Niklaus
parent aeee565115
commit d60bc61d13
2 changed files with 2 additions and 2 deletions

View File

@ -367,7 +367,7 @@ template <class EdgeDataT> class InternalDataFacade final : public BaseDataFacad
LoadRTree(); LoadRTree();
BOOST_ASSERT(m_geospatial_query.get()); BOOST_ASSERT(m_geospatial_query.get());
} }
util::RectangleInt2D bbox = { const util::RectangleInt2D bbox{
south_west.lon, north_east.lon, south_west.lat, north_east.lat}; south_west.lon, north_east.lon, south_west.lat, north_east.lat};
return m_geospatial_query->Search(bbox); return m_geospatial_query->Search(bbox);
} }

View File

@ -417,7 +417,7 @@ template <class EdgeDataT> class SharedDataFacade final : public BaseDataFacade<
LoadRTree(); LoadRTree();
BOOST_ASSERT(m_geospatial_query.get()); BOOST_ASSERT(m_geospatial_query.get());
} }
util::RectangleInt2D bbox = { const util::RectangleInt2D bbox{
south_west.lon, north_east.lon, south_west.lat, north_east.lat}; south_west.lon, north_east.lon, south_west.lat, north_east.lat};
return m_geospatial_query->Search(bbox); return m_geospatial_query->Search(bbox);
} }