summaryrefslogtreecommitdiff
path: root/project2/sql/rdbmsDataSource.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2012-03-14 21:39:55 +0000
committerrandomdan <randomdan@localhost>2012-03-14 21:39:55 +0000
commit3c49cf1a960403d29bd11c61963d1ed7032a3d93 (patch)
treed7f9297f871a3c40f41324b52726a8f47f8e55d5 /project2/sql/rdbmsDataSource.cpp
parentFix error persisting when loadComplete fails (diff)
downloadproject2-3c49cf1a960403d29bd11c61963d1ed7032a3d93.tar.bz2
project2-3c49cf1a960403d29bd11c61963d1ed7032a3d93.tar.xz
project2-3c49cf1a960403d29bd11c61963d1ed7032a3d93.zip
Port to C++0x (minor tweaks)
Use variadic templates in Storers to allow passing extra arguments to script object constructors
Diffstat (limited to 'project2/sql/rdbmsDataSource.cpp')
-rw-r--r--project2/sql/rdbmsDataSource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/project2/sql/rdbmsDataSource.cpp b/project2/sql/rdbmsDataSource.cpp
index 305f1d7..6f3cedb 100644
--- a/project2/sql/rdbmsDataSource.cpp
+++ b/project2/sql/rdbmsDataSource.cpp
@@ -45,7 +45,7 @@ RdbmsDataSource::RdbmsDataSource(ScriptNodePtr p) :
preferLocal(p->value("preferlocal", true))
{
BOOST_FOREACH(ScriptNodePtr node, p->childrenIn("readonly")) {
- roDSNs.insert(ReadonlyDSNs::value_type(node->value("host"), node));
+ roDSNs.insert(ReadonlyDSNs::value_type(node->value("host").as<std::string>(), node));
}
}