Skip to content

Commit

Permalink
rev: set sqlite move constructor/assignment to default
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 70287e3 commit 1f8b75d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
4 changes: 2 additions & 2 deletions include/geopackage/NGen_SQLite.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,15 @@ class sqlite
*
* @param db sqlite3 database object
*/
sqlite(sqlite&& db);
sqlite(sqlite&& db) = default;

/**
* Move assignment operator
*
* @param db sqlite3 database object
* @return sqlite& reference to sqlite3 database
*/
sqlite& operator=(sqlite&& db);
sqlite& operator=(sqlite&& db) = default;

/**
* Return the originating sqlite3 database pointer
Expand Down
13 changes: 0 additions & 13 deletions src/geopackage/sqlite/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,6 @@ sqlite::sqlite(const std::string& path)
this->conn = sqlite_t(conn);
}

sqlite::sqlite(sqlite&& db)
{
this->conn = std::move(db.conn);
this->stmt = db.stmt;
}

sqlite& sqlite::operator=(sqlite&& db)
{
this->conn = std::move(db.conn);
this->stmt = db.stmt;
return *this;
}

sqlite3* sqlite::connection() const noexcept
{
return this->conn.get();
Expand Down

0 comments on commit 1f8b75d

Please sign in to comment.