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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user