util: Move util/string.h functions to util namespace
There are no changes to behavior. Changes in this commit are all additions, and are easiest to review using "git diff -U0 --word-diff-regex=." options. Motivation for this change is to keep util functions with really generic names like "Split" and "Join" out of the global namespace so it is easier to see where these functions are defined, and so they don't interfere with function overloading, especially since the util library is a dependency of the kernel library and intended to be used with external code.
This commit is contained in:
1 parent
4d05d3f3b4
commit
4f74c59334
70 files changed
+159
-14
No files matched your search
@@ -85,6 +85,8 @@ Q_DECLARE_METATYPE(uint256)
|
||||
Q_DECLARE_METATYPE(wallet::AddressPurpose)
|
||||
#endif // ENABLE_WALLET
|
||||
|
||||
using util::MakeUnorderedList;
|
||||
|
||||
static void RegisterMetaTypes()
|
||||
{
|
||||
// Register meta types used for QMetaObject::invokeMethod and Qt::QueuedConnection
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#include <QLatin1Char>
|
||||
#include <QLatin1String>
|
||||
|
||||
using util::ToString;
|
||||
|
||||
RecentRequestsTableModel::RecentRequestsTableModel(WalletModel *parent) :
|
||||
QAbstractTableModel(parent), walletModel(parent)
|
||||
{
|
||||
|
||||
@@ -48,6 +48,8 @@
|
||||
|
||||
#include <chrono>
|
||||
|
||||
using util::Join;
|
||||
|
||||
const int CONSOLE_HISTORY = 50;
|
||||
const int INITIAL_TRAFFIC_GRAPH_MINS = 30;
|
||||
const QSize FONT_RANGE(4, 40);
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <QTimer>
|
||||
#include <QWindow>
|
||||
|
||||
using util::Join;
|
||||
using wallet::WALLET_FLAG_BLANK_WALLET;
|
||||
using wallet::WALLET_FLAG_DESCRIPTORS;
|
||||
using wallet::WALLET_FLAG_DISABLE_PRIVATE_KEYS;
|
||||
|
||||
Reference in new issue
Block a user