mirror of
https://github.com/znc/znc.git
synced 2026-04-30 10:34:16 +02:00
Use nullptr (#816)
Changes applied by 'clang-modernize -use-nullptr [...]'
This commit is contained in:
@@ -736,7 +736,7 @@ void CIRCSock::ReadLine(const CString& sData) {
|
||||
if (bReturn) return;
|
||||
|
||||
pChan->SetTopicOwner(Nick.GetNick());
|
||||
pChan->SetTopicDate((unsigned long) time(NULL));
|
||||
pChan->SetTopicDate((unsigned long) time(nullptr));
|
||||
pChan->SetTopic(sTopic);
|
||||
|
||||
if (pChan->IsDetached()) {
|
||||
@@ -954,7 +954,7 @@ bool CIRCSock::OnGeneralCTCP(CNick& Nick, CString& sMessage) {
|
||||
}
|
||||
|
||||
if (!sReply.empty()) {
|
||||
time_t now = time(NULL);
|
||||
time_t now = time(nullptr);
|
||||
// If the last CTCP is older than m_uCTCPFloodTime, reset the counter
|
||||
if (m_lastCTCP + m_uCTCPFloodTime < now)
|
||||
m_uNumCTCP = 0;
|
||||
|
||||
Reference in New Issue
Block a user