From 49bd6d93ad162bab0fdba3daf6d3cc68942a217d Mon Sep 17 00:00:00 2001 From: program-- Date: Mon, 10 Jul 2023 10:55:30 -0700 Subject: [PATCH] rev: move sqlite_t type alias into class changes per https://github.com/NOAA-OWP/ngen/pull/522#discussion_r1258599947 --- include/geopackage/NGen_SQLite.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/geopackage/NGen_SQLite.hpp b/include/geopackage/NGen_SQLite.hpp index 4c9b07b50d..1bc0b53038 100644 --- a/include/geopackage/NGen_SQLite.hpp +++ b/include/geopackage/NGen_SQLite.hpp @@ -19,11 +19,6 @@ struct sqlite_deleter void operator()(sqlite3_stmt* stmt) { sqlite3_finalize(stmt); } }; -/** - * Smart pointer (unique) type for sqlite3 database - */ -using sqlite_t = std::unique_ptr; - /** * Smart pointer (shared) type for sqlite3 prepared statements */ @@ -157,6 +152,11 @@ inline T sqlite_iter::get(const std::string& name) const class sqlite { private: + /** + * Smart pointer (unique) type for sqlite3 database + */ + using sqlite_t = std::unique_ptr; + sqlite_t conn = nullptr; stmt_t stmt = nullptr;