Browse Source

Bugfix: Include <memory> for std::unique_ptr

GitHub-Pull: #12859
Rebased-From: a5bca13
0.16
Luke Dashjr 7 years ago committed by fanquake
parent
commit
18b0c69e2f
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1
  1. 1
      src/bitcoin-cli.cpp
  2. 1
      src/bitcoin-tx.cpp
  3. 1
      src/chainparams.cpp
  4. 1
      src/chainparamsbase.cpp
  5. 1
      src/dbwrapper.cpp
  6. 2
      src/httprpc.cpp
  7. 1
      src/httpserver.cpp
  8. 1
      src/memusage.h
  9. 1
      src/miner.cpp
  10. 1
      src/net.cpp
  11. 2
      src/net_processing.cpp
  12. 1
      src/policy/fees.h
  13. 2
      src/qt/bantablemodel.h
  14. 1
      src/qt/bitcoin.cpp
  15. 1
      src/qt/paymentserver.cpp
  16. 2
      src/qt/peertablemodel.h
  17. 2
      src/qt/test/wallettests.cpp
  18. 2
      src/qt/walletmodeltransaction.h
  19. 1
      src/rpc/blockchain.cpp
  20. 1
      src/support/lockedpool.cpp
  21. 1
      src/sync.cpp
  22. 2
      src/test/allocator_tests.cpp
  23. 2
      src/test/dbwrapper_tests.cpp
  24. 2
      src/test/net_tests.cpp
  25. 2
      src/test/test_bitcoin.h
  26. 1
      src/test/test_bitcoin_fuzzy.cpp
  27. 2
      src/test/test_bitcoin_main.cpp
  28. 1
      src/txdb.h
  29. 1
      src/util.h
  30. 1
      src/validation.h
  31. 1
      src/wallet/db.h
  32. 2
      src/wallet/test/wallet_test_fixture.h
  33. 1
      src/wallet/test/wallet_tests.cpp
  34. 1
      src/wallet/wallet.h

1
src/bitcoin-cli.cpp

@ -15,6 +15,7 @@
#include <util.h> #include <util.h>
#include <utilstrencodings.h> #include <utilstrencodings.h>
#include <memory>
#include <stdio.h> #include <stdio.h>
#include <event2/buffer.h> #include <event2/buffer.h>

1
src/bitcoin-tx.cpp

@ -22,6 +22,7 @@
#include <utilmoneystr.h> #include <utilmoneystr.h>
#include <utilstrencodings.h> #include <utilstrencodings.h>
#include <memory>
#include <stdio.h> #include <stdio.h>
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>

1
src/chainparams.cpp

@ -11,6 +11,7 @@
#include <utilstrencodings.h> #include <utilstrencodings.h>
#include <assert.h> #include <assert.h>
#include <memory>
#include <chainparamsseeds.h> #include <chainparamsseeds.h>

1
src/chainparamsbase.cpp

@ -9,6 +9,7 @@
#include <util.h> #include <util.h>
#include <assert.h> #include <assert.h>
#include <memory>
const std::string CBaseChainParams::MAIN = "main"; const std::string CBaseChainParams::MAIN = "main";
const std::string CBaseChainParams::TESTNET = "test"; const std::string CBaseChainParams::TESTNET = "test";

1
src/dbwrapper.cpp

@ -4,6 +4,7 @@
#include <dbwrapper.h> #include <dbwrapper.h>
#include <memory>
#include <random.h> #include <random.h>
#include <leveldb/cache.h> #include <leveldb/cache.h>

2
src/httprpc.cpp

@ -17,6 +17,8 @@
#include <crypto/hmac_sha256.h> #include <crypto/hmac_sha256.h>
#include <stdio.h> #include <stdio.h>
#include <memory>
#include <boost/algorithm/string.hpp> // boost::trim #include <boost/algorithm/string.hpp> // boost::trim
/** WWW-Authenticate to present with 401 Unauthorized response */ /** WWW-Authenticate to present with 401 Unauthorized response */

1
src/httpserver.cpp

@ -13,6 +13,7 @@
#include <sync.h> #include <sync.h>
#include <ui_interface.h> #include <ui_interface.h>
#include <memory>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

1
src/memusage.h

@ -10,6 +10,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <map> #include <map>
#include <memory>
#include <set> #include <set>
#include <vector> #include <vector>
#include <unordered_map> #include <unordered_map>

1
src/miner.cpp

@ -27,6 +27,7 @@
#include <validationinterface.h> #include <validationinterface.h>
#include <algorithm> #include <algorithm>
#include <memory>
#include <queue> #include <queue>
#include <utility> #include <utility>

1
src/net.cpp

@ -20,6 +20,7 @@
#include <ui_interface.h> #include <ui_interface.h>
#include <utilstrencodings.h> #include <utilstrencodings.h>
#include <memory>
#ifdef WIN32 #ifdef WIN32
#include <string.h> #include <string.h>
#else #else

2
src/net_processing.cpp

@ -30,6 +30,8 @@
#include <utilmoneystr.h> #include <utilmoneystr.h>
#include <utilstrencodings.h> #include <utilstrencodings.h>
#include <memory>
#if defined(NDEBUG) #if defined(NDEBUG)
# error "Bitcoin cannot be compiled without assertions." # error "Bitcoin cannot be compiled without assertions."
#endif #endif

1
src/policy/fees.h

@ -12,6 +12,7 @@
#include <sync.h> #include <sync.h>
#include <map> #include <map>
#include <memory>
#include <string> #include <string>
#include <vector> #include <vector>

2
src/qt/bantablemodel.h

@ -7,6 +7,8 @@
#include <net.h> #include <net.h>
#include <memory>
#include <QAbstractTableModel> #include <QAbstractTableModel>
#include <QStringList> #include <QStringList>

1
src/qt/bitcoin.cpp

@ -36,6 +36,7 @@
#include <wallet/wallet.h> #include <wallet/wallet.h>
#endif #endif
#include <memory>
#include <stdint.h> #include <stdint.h>
#include <boost/thread.hpp> #include <boost/thread.hpp>

1
src/qt/paymentserver.cpp

@ -16,6 +16,7 @@
#include <wallet/wallet.h> #include <wallet/wallet.h>
#include <cstdlib> #include <cstdlib>
#include <memory>
#include <openssl/x509_vfy.h> #include <openssl/x509_vfy.h>

2
src/qt/peertablemodel.h

@ -8,6 +8,8 @@
#include <net_processing.h> // For CNodeStateStats #include <net_processing.h> // For CNodeStateStats
#include <net.h> #include <net.h>
#include <memory>
#include <QAbstractTableModel> #include <QAbstractTableModel>
#include <QStringList> #include <QStringList>

2
src/qt/test/wallettests.cpp

@ -18,6 +18,8 @@
#include <qt/recentrequeststablemodel.h> #include <qt/recentrequeststablemodel.h>
#include <qt/receiverequestdialog.h> #include <qt/receiverequestdialog.h>
#include <memory>
#include <QAbstractButton> #include <QAbstractButton>
#include <QAction> #include <QAction>
#include <QApplication> #include <QApplication>

2
src/qt/walletmodeltransaction.h

@ -7,6 +7,8 @@
#include <qt/walletmodel.h> #include <qt/walletmodel.h>
#include <memory>
#include <QObject> #include <QObject>
class SendCoinsRecipient; class SendCoinsRecipient;

1
src/rpc/blockchain.cpp

@ -33,6 +33,7 @@
#include <boost/thread/thread.hpp> // boost::thread::interrupt #include <boost/thread/thread.hpp> // boost::thread::interrupt
#include <memory>
#include <mutex> #include <mutex>
#include <condition_variable> #include <condition_variable>

1
src/support/lockedpool.cpp

@ -27,6 +27,7 @@
#endif #endif
#include <algorithm> #include <algorithm>
#include <memory>
LockedPoolManager* LockedPoolManager::_instance = nullptr; LockedPoolManager* LockedPoolManager::_instance = nullptr;
std::once_flag LockedPoolManager::init_flag; std::once_flag LockedPoolManager::init_flag;

1
src/sync.cpp

@ -4,6 +4,7 @@
#include <sync.h> #include <sync.h>
#include <memory>
#include <set> #include <set>
#include <util.h> #include <util.h>
#include <utilstrencodings.h> #include <utilstrencodings.h>

2
src/test/allocator_tests.cpp

@ -7,6 +7,8 @@
#include <support/allocators/secure.h> #include <support/allocators/secure.h>
#include <test/test_bitcoin.h> #include <test/test_bitcoin.h>
#include <memory>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
BOOST_FIXTURE_TEST_SUITE(allocator_tests, BasicTestingSetup) BOOST_FIXTURE_TEST_SUITE(allocator_tests, BasicTestingSetup)

2
src/test/dbwrapper_tests.cpp

@ -7,6 +7,8 @@
#include <random.h> #include <random.h>
#include <test/test_bitcoin.h> #include <test/test_bitcoin.h>
#include <memory>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
// Test if a string consists entirely of null characters // Test if a string consists entirely of null characters

2
src/test/net_tests.cpp

@ -13,6 +13,8 @@
#include <chainparams.h> #include <chainparams.h>
#include <util.h> #include <util.h>
#include <memory>
class CAddrManSerializationMock : public CAddrMan class CAddrManSerializationMock : public CAddrMan
{ {
public: public:

2
src/test/test_bitcoin.h

@ -14,6 +14,8 @@
#include <txdb.h> #include <txdb.h>
#include <txmempool.h> #include <txmempool.h>
#include <memory>
#include <boost/thread.hpp> #include <boost/thread.hpp>
extern uint256 insecure_rand_seed; extern uint256 insecure_rand_seed;

1
src/test/test_bitcoin_fuzzy.cpp

@ -25,6 +25,7 @@
#include <unistd.h> #include <unistd.h>
#include <algorithm> #include <algorithm>
#include <memory>
#include <vector> #include <vector>
enum TEST_ID { enum TEST_ID {

2
src/test/test_bitcoin_main.cpp

@ -6,6 +6,8 @@
#include <net.h> #include <net.h>
#include <memory>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
std::unique_ptr<CConnman> g_connman; std::unique_ptr<CConnman> g_connman;

1
src/txdb.h

@ -11,6 +11,7 @@
#include <chain.h> #include <chain.h>
#include <map> #include <map>
#include <memory>
#include <string> #include <string>
#include <utility> #include <utility>
#include <vector> #include <vector>

1
src/util.h

@ -23,6 +23,7 @@
#include <atomic> #include <atomic>
#include <exception> #include <exception>
#include <map> #include <map>
#include <memory>
#include <stdint.h> #include <stdint.h>
#include <string> #include <string>
#include <vector> #include <vector>

1
src/validation.h

@ -22,6 +22,7 @@
#include <algorithm> #include <algorithm>
#include <exception> #include <exception>
#include <map> #include <map>
#include <memory>
#include <set> #include <set>
#include <stdint.h> #include <stdint.h>
#include <string> #include <string>

1
src/wallet/db.h

@ -15,6 +15,7 @@
#include <atomic> #include <atomic>
#include <map> #include <map>
#include <memory>
#include <string> #include <string>
#include <vector> #include <vector>

2
src/wallet/test/wallet_test_fixture.h

@ -9,6 +9,8 @@
#include <wallet/wallet.h> #include <wallet/wallet.h>
#include <memory>
/** Testing setup and teardown for wallet. /** Testing setup and teardown for wallet.
*/ */
struct WalletTestingSetup: public TestingSetup { struct WalletTestingSetup: public TestingSetup {

1
src/wallet/test/wallet_tests.cpp

@ -4,6 +4,7 @@
#include <wallet/wallet.h> #include <wallet/wallet.h>
#include <memory>
#include <set> #include <set>
#include <stdint.h> #include <stdint.h>
#include <utility> #include <utility>

1
src/wallet/wallet.h

@ -22,6 +22,7 @@
#include <algorithm> #include <algorithm>
#include <atomic> #include <atomic>
#include <map> #include <map>
#include <memory>
#include <set> #include <set>
#include <stdexcept> #include <stdexcept>
#include <stdint.h> #include <stdint.h>

Loading…
Cancel
Save