Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/src/proxysocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ void ProxySocket::onUpstreamReadyRead()

void ProxySocket::onUpstreamError(QAbstractSocket::SocketError socketError)
{
Q_UNUSED(socketError);
if (mHeadersParsed) {
mDownstreamSocket->close();
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/src/qiodevicecopier_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ class QIODeviceCopierPrivate : public QObject
{
Q_OBJECT

QIODeviceCopier *const q;

public:

QIODeviceCopierPrivate(QIODeviceCopier *copier, QIODevice *srcDevice, QIODevice *destDevice);
Expand All @@ -56,8 +58,6 @@ public Q_SLOTS:
void nextBlock();

private:

QIODeviceCopier *const q;
};

}
Expand Down
4 changes: 2 additions & 2 deletions src/src/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ using namespace QHttpEngine;

ServerPrivate::ServerPrivate(Server *httpServer)
: QObject(httpServer),
q(httpServer),
handler(0)
handler(0),
q(httpServer)
{
}

Expand Down
2 changes: 2 additions & 0 deletions src/src/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ void SocketPrivate::onReadyRead()
case ReadFinished:
readBuffer.clear();
break;
default:
break;
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/src/socket_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class SocketPrivate : public QObject
{
Q_OBJECT

Socket*const q;

public:

SocketPrivate(Socket *httpSocket, QTcpSocket *tcpSocket);
Expand Down Expand Up @@ -80,7 +82,6 @@ private Q_SLOTS:
bool readHeaders();
void readData();

Socket*const q;
};

}
Expand Down