From 21d9f36781604e4ca9fc35dc65265593423b73e9 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Tue, 20 Dec 2011 16:52:59 -0500 Subject: Use standard C99 (and Qt) types for 64-bit integers --- src/qt/transactionrecord.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/qt/transactionrecord.h') diff --git a/src/qt/transactionrecord.h b/src/qt/transactionrecord.h index 704cfe65b7..db29b94576 100644 --- a/src/qt/transactionrecord.h +++ b/src/qt/transactionrecord.h @@ -3,6 +3,7 @@ #include "uint256.h" +#include #include class CWallet; @@ -46,8 +47,8 @@ public: /** @name Reported status @{*/ Status status; - int64 depth; - int64 open_for; /**< Timestamp if status==OpenUntilDate, otherwise number of blocks */ + qint64 depth; + qint64 open_for; /**< Timestamp if status==OpenUntilDate, otherwise number of blocks */ /**@}*/ /** Current number of blocks (to know whether cached status is still valid) */ @@ -79,15 +80,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) { @@ -101,11 +102,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 */ -- cgit v1.2.3