Skip to content

Commit

Permalink
rev: move sqlite_t type alias into class
Browse files Browse the repository at this point in the history
changes per #522 (comment)
  • Loading branch information
program-- authored and mattw-nws committed Jul 18, 2023
1 parent 45b6a91 commit f9c7710
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 f9c7710

Please sign in to comment.