refactor: Use TranslateFn type consistently

The type was introduced in the previous commit.
This commit is contained in:
MarcoFalke
2025-01-15 12:15:40 +01:00
parent eeee6cf2ff
commit fa1d5acb8d
8 changed files with 9 additions and 8 deletions

View File

@@ -1,10 +1,11 @@
// Copyright (c) 2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <util/translation.h>
#include <functional>
#include <string>
// Define G_TRANSLATION_FUN symbol in libbitcoinkernel library so users of the
// library aren't required to export this symbol
extern const std::function<std::string(const char*)> G_TRANSLATION_FUN = nullptr;
extern const TranslateFn G_TRANSLATION_FUN{nullptr};