common: Add NullVisitor default constructor

Addresses https://github.com/yuzu-emu/yuzu/issues/7881 to fix linux
builds.

`YUZU_NON_COPYABLE` deletes the `T(const T&)` constructor which will
cause the implicitly defined default ctor/dtor to no-longer generate.
This commit is contained in:
Wunkolo 2022-02-17 06:28:14 -08:00
parent c48b9668f0
commit 768fdb269e

View File

@ -171,6 +171,9 @@ struct VisitorInterface {
struct NullVisitor final : public VisitorInterface { struct NullVisitor final : public VisitorInterface {
YUZU_NON_COPYABLE(NullVisitor); YUZU_NON_COPYABLE(NullVisitor);
NullVisitor() = default;
~NullVisitor() override = default;
void Visit(const Field<bool>& /*field*/) override {} void Visit(const Field<bool>& /*field*/) override {}
void Visit(const Field<double>& /*field*/) override {} void Visit(const Field<double>& /*field*/) override {}
void Visit(const Field<float>& /*field*/) override {} void Visit(const Field<float>& /*field*/) override {}