diff options
Diffstat (limited to 'project2/common/commonObjects.h')
-rw-r--r-- | project2/common/commonObjects.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/project2/common/commonObjects.h b/project2/common/commonObjects.h index dae563a..fe6bd5c 100644 --- a/project2/common/commonObjects.h +++ b/project2/common/commonObjects.h @@ -17,13 +17,13 @@ class CommonObjects : public virtual IntrusivePtrBase { RowSetPtr getSource(const std::string &) const; template <class DataSourceType> - const DataSourceType * dataSource(const std::string & name) const + DataSourceType * dataSource(const std::string & name) const { DataSources::const_iterator i = datasources.find(name); if (i == datasources.end()) { i = loadDataSource(name); } - const DataSourceType * s = boost::dynamic_pointer_cast<const DataSourceType>(i->second).get(); + DataSourceType * s = boost::dynamic_pointer_cast<DataSourceType>(i->second).get(); if (!s) { throw DataSourceNotCompatible(name); } |