mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-26 13:26:30 -05:00
bcat: Take std::function instance by value in NullBackend's constructor
Without this, the std::move within the constructor initializer list won't be able to actually perform a move.
This commit is contained in:
parent
81adf46d1d
commit
7e77d1593f
2 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ Backend::Backend(DirectoryGetter getter) : dir_getter(std::move(getter)) {}
|
||||||
|
|
||||||
Backend::~Backend() = default;
|
Backend::~Backend() = default;
|
||||||
|
|
||||||
NullBackend::NullBackend(const DirectoryGetter& getter) : Backend(std::move(getter)) {}
|
NullBackend::NullBackend(DirectoryGetter getter) : Backend(std::move(getter)) {}
|
||||||
|
|
||||||
NullBackend::~NullBackend() = default;
|
NullBackend::~NullBackend() = default;
|
||||||
|
|
||||||
|
|
|
@ -131,7 +131,7 @@ protected:
|
||||||
// A backend of BCAT that provides no operation.
|
// A backend of BCAT that provides no operation.
|
||||||
class NullBackend : public Backend {
|
class NullBackend : public Backend {
|
||||||
public:
|
public:
|
||||||
explicit NullBackend(const DirectoryGetter& getter);
|
explicit NullBackend(DirectoryGetter getter);
|
||||||
~NullBackend() override;
|
~NullBackend() override;
|
||||||
|
|
||||||
bool Synchronize(TitleIDVersion title, ProgressServiceBackend& progress) override;
|
bool Synchronize(TitleIDVersion title, ProgressServiceBackend& progress) override;
|
||||||
|
|
Loading…
Reference in a new issue