sticker/Database: allow moving
This commit is contained in:
parent
83a6cb804b
commit
8743326924
@ -93,7 +93,8 @@ StickerDatabase::StickerDatabase(Path path)
|
|||||||
|
|
||||||
StickerDatabase::~StickerDatabase() noexcept
|
StickerDatabase::~StickerDatabase() noexcept
|
||||||
{
|
{
|
||||||
assert(db != nullptr);
|
if (db == nullptr)
|
||||||
|
return;
|
||||||
|
|
||||||
for (const auto &sticker : stmt) {
|
for (const auto &sticker : stmt) {
|
||||||
assert(sticker != nullptr);
|
assert(sticker != nullptr);
|
||||||
|
@ -65,6 +65,9 @@ public:
|
|||||||
StickerDatabase(Path path);
|
StickerDatabase(Path path);
|
||||||
~StickerDatabase() noexcept;
|
~StickerDatabase() noexcept;
|
||||||
|
|
||||||
|
StickerDatabase(StickerDatabase &&) noexcept = default;
|
||||||
|
StickerDatabase &operator=(StickerDatabase &&) noexcept = default;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns one value from an object's sticker record. Returns an
|
* Returns one value from an object's sticker record. Returns an
|
||||||
* empty string if the value doesn't exist.
|
* empty string if the value doesn't exist.
|
||||||
|
Loading…
Reference in New Issue
Block a user