aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2011-09-07 08:07:38 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2011-09-07 08:07:38 +0000
commitf8af3a8aae355fbedbb0852e54c0118365a9b511 (patch)
tree17fddfd3cc8b57efdd9e80d549ac32b571863984 /src
parentd48769f744833e6dc3e0c3a25ab69a95087215f5 (diff)
downloadqxmpp-f8af3a8aae355fbedbb0852e54c0118365a9b511.tar.gz
fix compiler warnings
Diffstat (limited to 'src')
-rw-r--r--src/server/mod_proxy65.cpp17
-rw-r--r--src/server/mod_stats.cpp9
2 files changed, 18 insertions, 8 deletions
diff --git a/src/server/mod_proxy65.cpp b/src/server/mod_proxy65.cpp
index 99b840f8..9562eae4 100644
--- a/src/server/mod_proxy65.cpp
+++ b/src/server/mod_proxy65.cpp
@@ -180,6 +180,9 @@ public:
QXmppServerProxy65::QXmppServerProxy65()
: d(new QXmppServerProxy65Private)
{
+ bool check;
+ Q_UNUSED(check);
+
d->port = 7777;
d->server = new QXmppSocksServer(this);
@@ -188,12 +191,12 @@ QXmppServerProxy65::QXmppServerProxy65()
d->totalBytes = 0;
d->totalTransfers = 0;
- bool check = connect(d->server, SIGNAL(newConnection(QTcpSocket*,QString,quint16)),
- this, SLOT(slotSocketConnected(QTcpSocket*,QString,quint16)));
+ check = connect(d->server, SIGNAL(newConnection(QTcpSocket*,QString,quint16)),
+ this, SLOT(slotSocketConnected(QTcpSocket*,QString,quint16)));
Q_ASSERT(check);
check = connect(d->statisticsTimer, SIGNAL(timeout()),
- this, SLOT(slotUpdateStatistics()));
+ this, SLOT(slotUpdateStatistics()));
Q_ASSERT(check);
}
@@ -468,12 +471,16 @@ void QXmppServerProxy65::setStatistics(const QVariantMap &statistics)
void QXmppServerProxy65::slotSocketConnected(QTcpSocket *socket, const QString &hostName, quint16 port)
{
Q_UNUSED(port);
- bool check;
+
QTcpSocketPair *pair = d->pairs.value(hostName);
if (!pair)
{
+ bool check;
+ Q_UNUSED(check);
+
pair = new QTcpSocketPair(hostName, this);
- check = connect(pair, SIGNAL(finished()), this, SLOT(slotPairFinished()));
+ check = connect(pair, SIGNAL(finished()),
+ this, SLOT(slotPairFinished()));
Q_ASSERT(check);
d->pairs.insert(hostName, pair);
}
diff --git a/src/server/mod_stats.cpp b/src/server/mod_stats.cpp
index 3f52063d..36cea79d 100644
--- a/src/server/mod_stats.cpp
+++ b/src/server/mod_stats.cpp
@@ -280,16 +280,19 @@ bool QXmppServerStats::handleStanza(QXmppStream *stream, const QDomElement &elem
bool QXmppServerStats::start()
{
+ bool check;
+ Q_UNUSED(check);
+
// determine jid
if (d->jid.isEmpty())
d->jid = "statistics." + server()->domain();
- bool check = connect(server(), SIGNAL(streamAdded(QXmppStream*)),
- this, SLOT(streamAdded(QXmppStream*)));
+ check = connect(server(), SIGNAL(streamAdded(QXmppStream*)),
+ this, SLOT(streamAdded(QXmppStream*)));
Q_ASSERT(check);
check = connect(server(), SIGNAL(streamRemoved(QXmppStream*)),
- this, SLOT(streamRemoved(QXmppStream*)));
+ this, SLOT(streamRemoved(QXmppStream*)));
Q_ASSERT(check);
d->statisticsTimer->start();