Cleanup code using forward declarations.

Use misc methods of avoiding unnecesary header includes.
Replace int typedefs with int##_t from stdint.h.
Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h.
Normalize QT_VERSION ifs where possible.
Resolve some indirect dependencies as direct ones.
Remove extern declarations from .cpp files.
This commit is contained in:
Brandon Dahler
2013-04-13 00:13:08 -05:00
parent 7c4c207be8
commit 51ed9ec971
177 changed files with 2084 additions and 1681 deletions

View File

@@ -51,8 +51,8 @@ public:
/** @name Reported status
@{*/
Status status;
int64 depth;
int64 open_for; /**< Timestamp if status==OpenUntilDate, otherwise number
qint64 depth;
qint64 open_for; /**< Timestamp if status==OpenUntilDate, otherwise number
of additional blocks that need to be mined before
finalization */
/**@}*/
@@ -86,15 +86,15 @@ public:
{
}
TransactionRecord(uint256 hash, int64 time):
TransactionRecord(uint256 hash, qint64 time):
hash(hash), time(time), type(Other), address(""), debit(0),
credit(0), idx(0)
{
}
TransactionRecord(uint256 hash, int64 time,
TransactionRecord(uint256 hash, qint64 time,
Type type, const std::string &address,
int64 debit, int64 credit):
qint64 debit, qint64 credit):
hash(hash), time(time), type(type), address(address), debit(debit), credit(credit),
idx(0)
{
@@ -108,11 +108,11 @@ public:
/** @name Immutable transaction attributes
@{*/
uint256 hash;
int64 time;
qint64 time;
Type type;
std::string address;
int64 debit;
int64 credit;
qint64 debit;
qint64 credit;
/**@}*/
/** Subtransaction index, for sort key */