From e7333b420e35054d9302f9c58fd47b6152cbd35f Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Mon, 6 Mar 2023 17:22:33 +0100 Subject: refactor: Extract util/exception from util/system This is a minimal extraction of a single function, but also the only use of std::exception in util/system. The background of this commit is an ongoing effort to decouple the libbitcoinkernel library from the ArgsManager defined in system.h. Moving the function out of system.h allows including it from a separate source file without including the ArgsManager definitions from system.h. --- src/qt/bitcoin.cpp | 1 + src/qt/guiutil.cpp | 1 + src/qt/initexecutor.cpp | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/qt') diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index 5244b72689..2c413e8b43 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 67c5295ae3..83c78d5c18 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -20,6 +20,7 @@ #include #include