Bugfix: Include <memory> for std::unique_ptr

This commit is contained in:
Luke Dashjr 2018-04-02 18:31:40 +00:00
parent 9d9c4185fa
commit a5bca13095
34 changed files with 46 additions and 0 deletions

View file

@ -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>

View file

@ -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>

View file

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

View file

@ -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";

View file

@ -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>

View file

@ -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 */

View file

@ -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>

View file

@ -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>

View file

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

View file

@ -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

View file

@ -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

View file

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

View file

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

View file

@ -37,6 +37,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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

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

View file

@ -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>

View file

@ -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;

View file

@ -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>

View file

@ -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)

View file

@ -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

View file

@ -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:

View file

@ -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;

View file

@ -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 {

View file

@ -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;

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

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

View file

@ -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 {

View file

@ -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>

View file

@ -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>