From 0c76112a85f27e2d41272792d0d54eee729dd18e Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 24 May 2021 18:54:36 +0300 Subject: Fix MinGW GCC's 'redeclared without dllimport attribute' warning --- odb/sqlite/connection.hxx | 5 +---- 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 (n, sqlite::query_base (q)); } + + // attached_connection_factory + // + inline connection_factory& attached_connection_factory:: + main_factory () + { + return main_connection_->factory (); + } } } -- cgit v1.1