From d2f60795927647c09acbeceb32efb8a29314c340 Mon Sep 17 00:00:00 2001 From: randomdan Date: Thu, 14 Jul 2011 19:50:11 +0000 Subject: All new dynamic transformations and processing and tidyup and stuff --- project2/commonObjects.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'project2/commonObjects.cpp') diff --git a/project2/commonObjects.cpp b/project2/commonObjects.cpp index 039e105..1d0b13e 100644 --- a/project2/commonObjects.cpp +++ b/project2/commonObjects.cpp @@ -12,14 +12,14 @@ CommonObjects::~CommonObjects() RowSetPtr CommonObjects::getSource(const std::string & name) const { - RowSets::index::type::const_iterator i = rowSets.get().find(name); - if (i != rowSets.get().end()) { - return *i; + RowSets::const_iterator i = rowSets.find(name); + if (i != rowSets.end()) { + return i->second; } throw CommonObjects::DataSourceNotFound(name); } -CommonObjects::DataSources::index::type::const_iterator +CommonObjects::DataSources::const_iterator CommonObjects::loadDataSource(const std::string & name) const { XmlScriptParser xml(ApplicationEngine::getCurrent()->env()->getDatasourceRoot(), name, true); @@ -28,8 +28,8 @@ CommonObjects::loadDataSource(const std::string & name) const loader.supportedStorers.insert(Storer::into(&datasources)); loader.collectAll(xml.get_document()->get_root_node(), false); - DataSources::index::type::const_iterator i = datasources.get().find(name); - if (i == datasources.get().end()) { + DataSources::const_iterator i = datasources.find(name); + if (i == datasources.end()) { throw DataSourceNotFound(name); } return i; -- cgit v1.2.3