Skip to content

Commit

Permalink
rev: move sqlite_t type alias into class
Browse files Browse the repository at this point in the history
  • Loading branch information
program-- committed Jul 10, 2023
1 parent 31fb4b1 commit 49bd6d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/geopackage/NGen_SQLite.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<sqlite3, sqlite_deleter>;

/**
* Smart pointer (shared) type for sqlite3 prepared statements
*/
Expand Down Expand Up @@ -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<sqlite3, sqlite_deleter>;

sqlite_t conn = nullptr;
stmt_t stmt = nullptr;

Expand Down

0 comments on commit 49bd6d9

Please sign in to comment.