diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-05-24 18:54:36 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-05-24 19:54:41 +0300 |
commit | 0c76112a85f27e2d41272792d0d54eee729dd18e (patch) | |
tree | 489947eded9692ce95e257e9cd3694823ece5518 | |
parent | 65e53934e43de0fd31846dd3242a01ecf3abaa67 (diff) |
Fix MinGW GCC's 'redeclared without dllimport attribute' warning
-rw-r--r-- | odb/sqlite/connection.hxx | 5 | ||||
-rw-r--r-- | odb/sqlite/connection.ixx | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/odb/sqlite/connection.hxx b/odb/sqlite/connection.hxx index 366239f..dbe4494 100644 --- a/odb/sqlite/connection.hxx +++ b/odb/sqlite/connection.hxx @@ -336,10 +336,7 @@ namespace odb friend class transaction_impl; connection_factory& - main_factory () - { - return main_connection_->factory (); - } + main_factory (); // Note that this essentially establishes a "framework" for all the // attached connection factory implementations: they hold a counted diff --git a/odb/sqlite/connection.ixx b/odb/sqlite/connection.ixx index c0e49b9..094fd52 100644 --- a/odb/sqlite/connection.ixx +++ b/odb/sqlite/connection.ixx @@ -96,5 +96,13 @@ namespace odb // return prepare_query<T> (n, sqlite::query_base (q)); } + + // attached_connection_factory + // + inline connection_factory& attached_connection_factory:: + main_factory () + { + return main_connection_->factory (); + } } } |