Skip to content

Commit

Permalink
[vm factory] make constructor explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
sharder996 committed Aug 31, 2023
1 parent dec0b4d commit 54faf5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/platform/backends/qemu/qemu_virtual_machine_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class QemuVirtualMachineFactory final : public BaseVirtualMachineFactory
std::vector<NetworkInterfaceInfo> networks() const override;

private:
explicit QemuVirtualMachineFactory(QemuPlatform::UPtr qemu_platform, const Path& data_dir);

QemuPlatform::UPtr qemu_platform;
};
} // namespace multipass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class BaseVirtualMachineFactory : public VirtualMachineFactory
{
public:
BaseVirtualMachineFactory() = default;
BaseVirtualMachineFactory(const Path& instances_dir);
explicit BaseVirtualMachineFactory(const Path& instances_dir);

void remove_resources_for(const std::string& name) override;

Expand Down

0 comments on commit 54faf5f

Please sign in to comment.