diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-29 16:40:50 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-30 04:31:10 +0000 |
commit | 4f702a21dea7b192328cc904f7c644c0ac7f8418 (patch) | |
tree | c1d4e858db0cf6392f454ac66f88aef2263f57f2 /project2/sql/rdbmsDataSource.cpp | |
parent | Add missing links to pthread (gcc-5.3 fix) (diff) | |
download | project2-4f702a21dea7b192328cc904f7c644c0ac7f8418.tar.bz2 project2-4f702a21dea7b192328cc904f7c644c0ac7f8418.tar.xz project2-4f702a21dea7b192328cc904f7c644c0ac7f8418.zip |
Compatibility with libdbpp-*-1 - non-const Connections
Diffstat (limited to 'project2/sql/rdbmsDataSource.cpp')
-rw-r--r-- | project2/sql/rdbmsDataSource.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/project2/sql/rdbmsDataSource.cpp b/project2/sql/rdbmsDataSource.cpp index 46e97a8..a3bb6a1 100644 --- a/project2/sql/rdbmsDataSource.cpp +++ b/project2/sql/rdbmsDataSource.cpp @@ -200,7 +200,7 @@ RdbmsDataSource::connectTo(const ConnectionInfo & dsn) } } -RdbmsDataSource::RdbmsConnection::RdbmsConnection(const DB::Connection * con, time_t kat) : +RdbmsDataSource::RdbmsConnection::RdbmsConnection(DB::Connection * const con, time_t kat) : connection(con), txOpen(false), lastUsedTime(0), @@ -288,19 +288,19 @@ RdbmsDataSource::ConnectionRef::operator=(const RdbmsDataSource::ConnectionRef & return *this; } -const DB::Connection * +DB::Connection * RdbmsDataSource::ConnectionRef::operator->() const { return conn->connection; } -const DB::Connection & +DB::Connection & RdbmsDataSource::ConnectionRef::operator*() const { return *conn->connection; } -const DB::Connection * +DB::Connection * RdbmsDataSource::ConnectionRef::get() const { return conn->connection; |