summaryrefslogtreecommitdiffstats
path: root/src/network/socket/qlocalsocket_unix.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-02-18 18:48:41 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-03-17 10:54:17 (GMT)
commitec5b7ea367389234697a98d7243243ec689be724 (patch)
tree0eb5ccd5527ce7c9e789115d62df182c10656689 /src/network/socket/qlocalsocket_unix.cpp
parentcd33d38ce0067719b0215264a22685a91b2e08dc (diff)
downloadQt-ec5b7ea367389234697a98d7243243ec689be724.zip
Qt-ec5b7ea367389234697a98d7243243ec689be724.tar.gz
Qt-ec5b7ea367389234697a98d7243243ec689be724.tar.bz2
Port QtNetwork uses of QTime as a stopwatch to QTimestamp.
Diffstat (limited to 'src/network/socket/qlocalsocket_unix.cpp')
-rw-r--r--src/network/socket/qlocalsocket_unix.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/socket/qlocalsocket_unix.cpp b/src/network/socket/qlocalsocket_unix.cpp
index 1ca11d8..20301ba 100644
--- a/src/network/socket/qlocalsocket_unix.cpp
+++ b/src/network/socket/qlocalsocket_unix.cpp
@@ -52,9 +52,9 @@
#include <fcntl.h>
#include <errno.h>
-#include <qdatetime.h>
#include <qdir.h>
#include <qdebug.h>
+#include <qtimestamp.h>
#ifdef Q_OS_VXWORKS
# include <selectLib.h>
@@ -534,7 +534,7 @@ bool QLocalSocket::waitForConnected(int msec)
int result = -1;
// on Linux timeout will be updated by select, but _not_ on other systems.
- QTime timer;
+ QTimestamp timer;
timer.start();
while (state() == ConnectingState
&& (-1 == msec || timer.elapsed() < msec)) {