Includes: Do not include main.h from any other header

This commit is contained in:
Jorge Timón 2015-02-05 01:21:11 +01:00
parent eca0b1ea62
commit 8a893c949b
12 changed files with 22 additions and 4 deletions

View file

@ -10,6 +10,8 @@
#include "base58.h"
#include "wallet/wallet.h"
#include <boost/foreach.hpp>
#include <QFont>
#include <QDebug>

View file

@ -10,6 +10,7 @@
#include "base58.h"
#include "chainparams.h"
#include "main.h"
#include "ui_interface.h"
#include "util.h"
#include "wallet/wallet.h"

View file

@ -17,6 +17,7 @@
#include "base58.h"
#include "coincontrol.h"
#include "main.h"
#include "ui_interface.h"
#include "wallet/wallet.h"

View file

@ -12,6 +12,7 @@
#include "base58.h"
#include "init.h"
#include "main.h" // For strMessageMagic
#include "wallet/wallet.h"
#include <string>

View file

@ -5,11 +5,14 @@
#include "transactionrecord.h"
#include "base58.h"
#include "main.h"
#include "timedata.h"
#include "wallet/wallet.h"
#include <stdint.h>
#include <boost/foreach.hpp>
/* Return positive answer if transaction should be shown in list.
*/
bool TransactionRecord::showTransaction(const CWalletTx &wtx)

View file

@ -6,6 +6,7 @@
#include "rpcclient.h"
#include "base58.h"
#include "main.h"
#include "wallet/wallet.h"
#include "test/test_bitcoin.h"

View file

@ -5,6 +5,7 @@
#include "txdb.h"
#include "main.h"
#include "pow.h"
#include "uint256.h"

View file

@ -6,15 +6,17 @@
#ifndef BITCOIN_TXDB_H
#define BITCOIN_TXDB_H
#include "coins.h"
#include "leveldbwrapper.h"
#include "main.h"
#include <map>
#include <string>
#include <utility>
#include <vector>
class CCoins;
class CBlockFileInfo;
class CBlockIndex;
class CDiskTxPos;
class uint256;
//! -dbcache default (MiB)

View file

@ -6,10 +6,11 @@
#include "amount.h"
#include "base58.h"
#include "core_io.h"
#include "rpcserver.h"
#include "init.h"
#include "main.h"
#include "net.h"
#include "netbase.h"
#include "rpcserver.h"
#include "timedata.h"
#include "util.h"
#include "utilmoneystr.h"

View file

@ -8,6 +8,7 @@
#include "base58.h"
#include "checkpoints.h"
#include "coincontrol.h"
#include "main.h"
#include "net.h"
#include "script/script.h"
#include "script/sign.h"

View file

@ -9,10 +9,11 @@
#include "amount.h"
#include "key.h"
#include "keystore.h"
#include "main.h"
#include "primitives/block.h"
#include "primitives/transaction.h"
#include "tinyformat.h"
#include "ui_interface.h"
#include "utilstrencodings.h"
#include "validationinterface.h"
#include "wallet/crypter.h"
#include "wallet/wallet_ismine.h"
@ -49,10 +50,12 @@ static const CAmount nHighTransactionMaxFeeWarning = 100 * nHighTransactionFeeWa
static const unsigned int MAX_FREE_TRANSACTION_CREATE_SIZE = 1000;
class CAccountingEntry;
class CBlockIndex;
class CCoinControl;
class COutput;
class CReserveKey;
class CScript;
class CTxMemPool;
class CWalletTx;
/** (client) version numbers for particular wallet features */

View file

@ -6,6 +6,7 @@
#include "wallet/walletdb.h"
#include "base58.h"
#include "main.h"
#include "protocol.h"
#include "serialize.h"
#include "sync.h"