From 7027da3cd3ea15d1cf77fd355f1926dacfdf07ac Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 29 Jan 2018 18:43:10 +0100 Subject: [PATCH] Instance: un-inline the destructor Allows more forward declarations. --- src/Instance.cxx | 2 ++ src/Instance.hxx | 1 + 2 files changed, 3 insertions(+) diff --git a/src/Instance.cxx b/src/Instance.cxx index bd5d377a9..f87a53be1 100644 --- a/src/Instance.cxx +++ b/src/Instance.cxx @@ -39,6 +39,8 @@ Instance::Instance() { } +Instance::~Instance() noexcept = default; + Partition * Instance::FindPartition(const char *name) noexcept { diff --git a/src/Instance.hxx b/src/Instance.hxx index a3d0eb61f..cd05c75f2 100644 --- a/src/Instance.hxx +++ b/src/Instance.hxx @@ -94,6 +94,7 @@ struct Instance final StateFile *state_file = nullptr; Instance(); + ~Instance() noexcept; /** * Initiate shutdown. Wrapper for EventLoop::Break().