summaryrefslogtreecommitdiff
path: root/project2/commonObjects.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-02-15 20:18:18 +0000
committerrandomdan <randomdan@localhost>2011-02-15 20:18:18 +0000
commitb383a557107abb1a8684f9233286e35277dc7581 (patch)
tree957a972ca06e0662e3b2a8a1a97f5844be5c7b05 /project2/commonObjects.cpp
parentAdd debug option for dumping the data document before sending it to the web s... (diff)
downloadproject2-b383a557107abb1a8684f9233286e35277dc7581.tar.bz2
project2-b383a557107abb1a8684f9233286e35277dc7581.tar.xz
project2-b383a557107abb1a8684f9233286e35277dc7581.zip
Tidied up XML loader using boost::multi_index
Diffstat (limited to 'project2/commonObjects.cpp')
-rw-r--r--project2/commonObjects.cpp6
1 files changed, 3 insertions, 3 deletions
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<bySOName>::type::const_iterator i = rowSets.get<bySOName>().find(name);
+ if (i != rowSets.get<bySOName>().end()) {
+ return *i;
}
throw CommonObjects::DataSourceNotFound();
}