Skip to content

Commit

Permalink
Bugfix: Include <memory> for std::unique_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed Apr 2, 2018
1 parent 9d9c418 commit a5bca13
Show file tree
Hide file tree
Showing 34 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/bitcoin-cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <util.h>
#include <utilstrencodings.h>

#include <memory>
#include <stdio.h>

#include <event2/buffer.h>
Expand Down
1 change: 1 addition & 0 deletions src/bitcoin-tx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <utilmoneystr.h>
#include <utilstrencodings.h>

#include <memory>
#include <stdio.h>

#include <boost/algorithm/string.hpp>
Expand Down
1 change: 1 addition & 0 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <utilstrencodings.h>

#include <assert.h>
#include <memory>

#include <chainparamsseeds.h>

Expand Down
1 change: 1 addition & 0 deletions src/chainparamsbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <util.h>

#include <assert.h>
#include <memory>

const std::string CBaseChainParams::MAIN = "main";
const std::string CBaseChainParams::TESTNET = "test";
Expand Down
1 change: 1 addition & 0 deletions src/dbwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <dbwrapper.h>

#include <memory>
#include <random.h>

#include <leveldb/cache.h>
Expand Down
2 changes: 2 additions & 0 deletions src/httprpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include <crypto/hmac_sha256.h>
#include <stdio.h>

#include <memory>

#include <boost/algorithm/string.hpp> // boost::trim

/** WWW-Authenticate to present with 401 Unauthorized response */
Expand Down
1 change: 1 addition & 0 deletions src/httpserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <sync.h>
#include <ui_interface.h>

#include <memory>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down
1 change: 1 addition & 0 deletions src/memusage.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <stdlib.h>

#include <map>
#include <memory>
#include <set>
#include <vector>
#include <unordered_map>
Expand Down
1 change: 1 addition & 0 deletions src/miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <validationinterface.h>

#include <algorithm>
#include <memory>
#include <queue>
#include <utility>

Expand Down
1 change: 1 addition & 0 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <ui_interface.h>
#include <utilstrencodings.h>

#include <memory>
#ifdef WIN32
#include <string.h>
#else
Expand Down
2 changes: 2 additions & 0 deletions src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
#include <utilmoneystr.h>
#include <utilstrencodings.h>

#include <memory>

#if defined(NDEBUG)
# error "Bitcoin cannot be compiled without assertions."
#endif
Expand Down
1 change: 1 addition & 0 deletions src/policy/fees.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <sync.h>

#include <map>
#include <memory>
#include <string>
#include <vector>

Expand Down
2 changes: 2 additions & 0 deletions src/qt/bantablemodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#include <net.h>

#include <memory>

#include <QAbstractTableModel>
#include <QStringList>

Expand Down
1 change: 1 addition & 0 deletions src/qt/bitcoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include <wallet/wallet.h>
#endif

#include <memory>
#include <stdint.h>

#include <boost/thread.hpp>
Expand Down
1 change: 1 addition & 0 deletions src/qt/paymentserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <wallet/wallet.h>

#include <cstdlib>
#include <memory>

#include <openssl/x509_vfy.h>

Expand Down
2 changes: 2 additions & 0 deletions src/qt/peertablemodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include <net_processing.h> // For CNodeStateStats
#include <net.h>

#include <memory>

#include <QAbstractTableModel>
#include <QStringList>

Expand Down
2 changes: 2 additions & 0 deletions src/qt/test/wallettests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include <qt/recentrequeststablemodel.h>
#include <qt/receiverequestdialog.h>

#include <memory>

#include <QAbstractButton>
#include <QAction>
#include <QApplication>
Expand Down
2 changes: 2 additions & 0 deletions src/qt/walletmodeltransaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#include <qt/walletmodel.h>

#include <memory>

#include <QObject>

class SendCoinsRecipient;
Expand Down
1 change: 1 addition & 0 deletions src/rpc/blockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

#include <boost/thread/thread.hpp> // boost::thread::interrupt

#include <memory>
#include <mutex>
#include <condition_variable>

Expand Down
1 change: 1 addition & 0 deletions src/support/lockedpool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#endif

#include <algorithm>
#include <memory>

LockedPoolManager* LockedPoolManager::_instance = nullptr;
std::once_flag LockedPoolManager::init_flag;
Expand Down
1 change: 1 addition & 0 deletions src/sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <sync.h>

#include <memory>
#include <set>
#include <util.h>
#include <utilstrencodings.h>
Expand Down
2 changes: 2 additions & 0 deletions src/test/allocator_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include <support/allocators/secure.h>
#include <test/test_bitcoin.h>

#include <memory>

#include <boost/test/unit_test.hpp>

BOOST_FIXTURE_TEST_SUITE(allocator_tests, BasicTestingSetup)
Expand Down
2 changes: 2 additions & 0 deletions src/test/dbwrapper_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include <random.h>
#include <test/test_bitcoin.h>

#include <memory>

#include <boost/test/unit_test.hpp>

// Test if a string consists entirely of null characters
Expand Down
2 changes: 2 additions & 0 deletions src/test/net_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include <chainparams.h>
#include <util.h>

#include <memory>

class CAddrManSerializationMock : public CAddrMan
{
public:
Expand Down
2 changes: 2 additions & 0 deletions src/test/test_bitcoin.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#include <txdb.h>
#include <txmempool.h>

#include <memory>

#include <boost/thread.hpp>

extern uint256 insecure_rand_seed;
Expand Down
1 change: 1 addition & 0 deletions src/test/test_bitcoin_fuzzy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <unistd.h>

#include <algorithm>
#include <memory>
#include <vector>

enum TEST_ID {
Expand Down
2 changes: 2 additions & 0 deletions src/test/test_bitcoin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

#include <net.h>

#include <memory>

#include <boost/test/unit_test.hpp>

std::unique_ptr<CConnman> g_connman;
Expand Down
1 change: 1 addition & 0 deletions src/txdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <chain.h>

#include <map>
#include <memory>
#include <string>
#include <utility>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <atomic>
#include <exception>
#include <map>
#include <memory>
#include <stdint.h>
#include <string>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions src/validation.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <algorithm>
#include <exception>
#include <map>
#include <memory>
#include <set>
#include <stdint.h>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions src/wallet/db.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

#include <atomic>
#include <map>
#include <memory>
#include <string>
#include <vector>

Expand Down
2 changes: 2 additions & 0 deletions src/wallet/test/wallet_test_fixture.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

#include <wallet/wallet.h>

#include <memory>

/** Testing setup and teardown for wallet.
*/
struct WalletTestingSetup: public TestingSetup {
Expand Down
1 change: 1 addition & 0 deletions src/wallet/test/wallet_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <wallet/wallet.h>

#include <memory>
#include <set>
#include <stdint.h>
#include <utility>
Expand Down
1 change: 1 addition & 0 deletions src/wallet/wallet.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <algorithm>
#include <atomic>
#include <map>
#include <memory>
#include <set>
#include <stdexcept>
#include <stdint.h>
Expand Down

0 comments on commit a5bca13

Please sign in to comment.