aboutsummaryrefslogtreecommitdiffstats
path: root/src/kvilib/irc/KviIrcServer.cpp
diff options
context:
space:
mode:
authorGravatar staticfox2017-09-27 22:39:41 -0400
committerGravatar staticfox2017-09-27 22:39:41 -0400
commitada6c8f57c14ab6cc1f67c7fc39fdac407270fcc (patch)
tree7b940e2726a0e2823fab155d13643da212a9d7d2 /src/kvilib/irc/KviIrcServer.cpp
parentChannelWindow: Match return type of maskCount() (diff)
downloadKVIrc-ada6c8f57c14ab6cc1f67c7fc39fdac407270fcc.tar.gz
KVIrc-ada6c8f57c14ab6cc1f67c7fc39fdac407270fcc.tar.bz2
KVIrc-ada6c8f57c14ab6cc1f67c7fc39fdac407270fcc.zip
gettimeofday(): Remove timezone argument
1) Due to timezone and Daylight Savings, it has been abadonded and deprecated 2) It failed to compile under msvc2017 for whatever reason 3) We've never used it anyway
Diffstat (limited to 'src/kvilib/irc/KviIrcServer.cpp')
-rw-r--r--src/kvilib/irc/KviIrcServer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kvilib/irc/KviIrcServer.cpp b/src/kvilib/irc/KviIrcServer.cpp
index 4eeeadf90..a88a33953 100644
--- a/src/kvilib/irc/KviIrcServer.cpp
+++ b/src/kvilib/irc/KviIrcServer.cpp
@@ -178,7 +178,7 @@ void KviIrcServer::clearReconnectInfo()
void KviIrcServer::generateUniqueId()
{
struct timeval tv;
- kvi_gettimeofday(&tv, nullptr);
+ kvi_gettimeofday(&tv);
m_szId = QString("myserver%1%2%3").arg(tv.tv_usec).arg(rand() % 1000).arg(rand() % 1000);
}