diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-08-06 19:09:28 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-08-06 19:09:28 +0300 |
commit | ecc0a1fa45008caf481ff337e60308804d3d22d8 (patch) | |
tree | 01b440daad504363e0d19cd04508b4fdcd8e95a7 | |
parent | a3d021860053687e9244b86df244cd13c096ee39 (diff) |
Fix database(database&&) to also move configuration name
-rw-r--r-- | bpkg/database.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bpkg/database.cxx b/bpkg/database.cxx index fdfee32..6724582 100644 --- a/bpkg/database.cxx +++ b/bpkg/database.cxx @@ -312,6 +312,7 @@ namespace bpkg database (database&& db) : sqlite::database (move (db)), uuid (db.uuid), + name (move (db.name)), type (move (db.type)), config (move (db.config)), config_orig (move (db.config_orig)), @@ -394,6 +395,9 @@ namespace bpkg void database:: cache_config (const uuid_type& u, optional<std::string> n, std::string t) { + // NOTE: remember to update database(database&&) if changing anything + // here. + // uuid = u; name = move (n); type = move (t); |