diff options
Diffstat (limited to 'src/qt/recentrequeststablemodel.h')
-rw-r--r-- | src/qt/recentrequeststablemodel.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/qt/recentrequeststablemodel.h b/src/qt/recentrequeststablemodel.h index 4f0b241259..a558aa4942 100644 --- a/src/qt/recentrequeststablemodel.h +++ b/src/qt/recentrequeststablemodel.h @@ -24,8 +24,12 @@ public: QDateTime date; SendCoinsRecipient recipient; - IMPLEMENT_SERIALIZE - ( + IMPLEMENT_SERIALIZE; + + template <typename Stream, typename Operation> + inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) { + bool fRead = ser_action.ForRead(); + RecentRequestEntry* pthis = const_cast<RecentRequestEntry*>(this); unsigned int nDate = date.toTime_t(); @@ -37,8 +41,8 @@ public: READWRITE(recipient); if (fRead) - pthis->date = QDateTime::fromTime_t(nDate); - ) + date = QDateTime::fromTime_t(nDate); + } }; class RecentRequestEntryLessThan |