summaryrefslogtreecommitdiffstats
path: root/tests/auto/network/socket
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-03-23 11:44:19 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-27 16:35:39 +0200
commit2c4845ce331e5dfaf5e106f74871ce16721a1358 (patch)
tree32bf5ee220e114e0bee7ab49fc79a3a287c0f121 /tests/auto/network/socket
parent0ee1b4a1dea8b587a5d39bfeb7e18c97f13dd877 (diff)
Fix some compiler warnings in tests.
- Unused variables - Deprecated conversion from const char * to char *. Change-Id: Iea0b9c4613ea74cead6d95ba12ad1028f531cbff Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Diffstat (limited to 'tests/auto/network/socket')
-rw-r--r--tests/auto/network/socket/qlocalsocket/example/server/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/network/socket/qlocalsocket/example/server/main.cpp b/tests/auto/network/socket/qlocalsocket/example/server/main.cpp
index d066e4ef51..909bb6856f 100644
--- a/tests/auto/network/socket/qlocalsocket/example/server/main.cpp
+++ b/tests/auto/network/socket/qlocalsocket/example/server/main.cpp
@@ -72,7 +72,7 @@ public:
if (n == 0)
break;
qDebug() << "Read" << str;
- if ("exit" == str)
+ if (!qstrcmp(str, "exit"))
qApp->quit();
if (socket->write(str, 100) < 0) {