From b383a557107abb1a8684f9233286e35277dc7581 Mon Sep 17 00:00:00 2001 From: randomdan Date: Tue, 15 Feb 2011 20:18:18 +0000 Subject: Tidied up XML loader using boost::multi_index --- project2/commonObjects.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'project2/commonObjects.cpp') diff --git a/project2/commonObjects.cpp b/project2/commonObjects.cpp index 90c8bdc..6d8fc08 100644 --- a/project2/commonObjects.cpp +++ b/project2/commonObjects.cpp @@ -3,9 +3,9 @@ RowSetPtr CommonObjects::getSource(const std::string & name) const { - RowSets::const_iterator i = rowSets.find(name); - if (i != rowSets.end()) { - return i->second; + RowSets::index::type::const_iterator i = rowSets.get().find(name); + if (i != rowSets.get().end()) { + return *i; } throw CommonObjects::DataSourceNotFound(); } -- cgit v1.2.3