Browse Source

Merge pull request #3257

379778b core: remove includes in .cpp, if header is already in .h (Philip Kaufmann)
metaverse
Wladimir J. van der Laan 11 years ago
parent
commit
d980f9b7d6
No known key found for this signature in database GPG Key ID: 74810B012346C9A6
  1. 2
      src/bitcoinrpc.cpp
  2. 2
      src/core.cpp
  3. 1
      src/main.cpp
  4. 2
      src/miner.cpp
  5. 3
      src/net.cpp
  6. 2
      src/netbase.cpp
  7. 2
      src/protocol.cpp
  8. 2
      src/script.cpp
  9. 2
      src/util.cpp
  10. 1
      src/wallet.cpp
  11. 1
      src/walletdb.cpp

2
src/bitcoinrpc.cpp

@ -11,8 +11,6 @@
#include "util.h" #include "util.h"
#include "wallet.h" #include "wallet.h"
#include <stdint.h>
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>
#include <boost/asio.hpp> #include <boost/asio.hpp>
#include <boost/asio/ssl.hpp> #include <boost/asio/ssl.hpp>

2
src/core.cpp

@ -7,8 +7,6 @@
#include "util.h" #include "util.h"
#include <stdint.h>
std::string COutPoint::ToString() const std::string COutPoint::ToString() const
{ {
return strprintf("COutPoint(%s, %u)", hash.ToString().substr(0,10).c_str(), n); return strprintf("COutPoint(%s, %u)", hash.ToString().substr(0,10).c_str(), n);

1
src/main.cpp

@ -19,7 +19,6 @@
#include <inttypes.h> #include <inttypes.h>
#include <sstream> #include <sstream>
#include <stdint.h>
#include <boost/algorithm/string/replace.hpp> #include <boost/algorithm/string/replace.hpp>
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>

2
src/miner.cpp

@ -10,8 +10,6 @@
#include "net.h" #include "net.h"
#include "wallet.h" #include "wallet.h"
#include <stdint.h>
double dHashesPerSec = 0.0; double dHashesPerSec = 0.0;
int64_t nHPSTimerStart = 0; int64_t nHPSTimerStart = 0;

3
src/net.cpp

@ -15,9 +15,6 @@
#include "db.h" #include "db.h"
#include "ui_interface.h" #include "ui_interface.h"
#include <inttypes.h>
#include <stdint.h>
#ifdef WIN32 #ifdef WIN32
#include <string.h> #include <string.h>
#else #else

2
src/netbase.cpp

@ -10,8 +10,6 @@
#include "uint256.h" #include "uint256.h"
#include "util.h" #include "util.h"
#include <stdint.h>
#ifndef WIN32 #ifndef WIN32
#include <fcntl.h> #include <fcntl.h>
#endif #endif

2
src/protocol.cpp

@ -7,8 +7,6 @@
#include "util.h" #include "util.h"
#include <stdint.h>
#ifndef WIN32 #ifndef WIN32
# include <arpa/inet.h> # include <arpa/inet.h>
#endif #endif

2
src/script.cpp

@ -14,8 +14,6 @@
#include "uint256.h" #include "uint256.h"
#include "util.h" #include "util.h"
#include <stdint.h>
#include <boost/foreach.hpp> #include <boost/foreach.hpp>
#include <boost/tuple/tuple.hpp> #include <boost/tuple/tuple.hpp>
#include <boost/tuple/tuple_comparison.hpp> #include <boost/tuple/tuple_comparison.hpp>

2
src/util.cpp

@ -12,9 +12,7 @@
#include "uint256.h" #include "uint256.h"
#include "version.h" #include "version.h"
#include <inttypes.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdint.h>
#ifndef WIN32 #ifndef WIN32
// for posix_fallocate // for posix_fallocate

1
src/wallet.cpp

@ -10,7 +10,6 @@
#include "net.h" #include "net.h"
#include <inttypes.h> #include <inttypes.h>
#include <stdint.h>
#include <boost/algorithm/string/replace.hpp> #include <boost/algorithm/string/replace.hpp>
#include <openssl/rand.h> #include <openssl/rand.h>

1
src/walletdb.cpp

@ -12,7 +12,6 @@
#include "wallet.h" #include "wallet.h"
#include <inttypes.h> #include <inttypes.h>
#include <stdint.h>
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#include <boost/foreach.hpp> #include <boost/foreach.hpp>

Loading…
Cancel
Save