From 1c0172cca4f1e90679321912e20436a7f42f122d Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Sat, 24 Feb 2018 15:32:06 +0100 Subject: more nullptr --- protocols/FacebookRM/src/proto.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/FacebookRM/src') diff --git a/protocols/FacebookRM/src/proto.h b/protocols/FacebookRM/src/proto.h index 999ca5b704..03c3920150 100644 --- a/protocols/FacebookRM/src/proto.h +++ b/protocols/FacebookRM/src/proto.h @@ -74,9 +74,9 @@ public: inline int IdleSeconds() { if ((m_iStatus == ID_STATUS_AWAY || m_iStatus == ID_STATUS_INVISIBLE) && m_awayTS) - return time(0) - m_awayTS; + return time(nullptr) - m_awayTS; - return m_idleTS ? time(0) - m_idleTS : 0; + return m_idleTS ? time(nullptr) - m_idleTS : 0; } bool m_invisible; -- cgit v1.2.3