diff options
author | Kurt Pattyn <pattyn.kurt@gmail.com> | 2014-01-19 13:43:52 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-20 20:13:00 +0100 |
commit | f8b27c6b833ee796193ae115cb87574cb0e4df4c (patch) | |
tree | 3196696628cbb08b72c534eac7187fd5d26c102a /src/websockets/qwebsocket_p.cpp | |
parent | 02e71a5d8c2a006684e2223084231c07d1fe818f (diff) | |
download | qtwebsockets-f8b27c6b833ee796193ae115cb87574cb0e4df4c.tar.gz |
Rename write methods
Renamed the write methods to sendTextMessage
and sendBinaryMessage respectively. This makes
the code more readable.
Change-Id: Ie49abf07a37f54c84bd01c5c788d2e42b28bcfdd
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'src/websockets/qwebsocket_p.cpp')
-rw-r--r-- | src/websockets/qwebsocket_p.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/websockets/qwebsocket_p.cpp b/src/websockets/qwebsocket_p.cpp index bd4d1c1..5d775ef 100644 --- a/src/websockets/qwebsocket_p.cpp +++ b/src/websockets/qwebsocket_p.cpp @@ -210,7 +210,7 @@ bool QWebSocketPrivate::flush() /*! \internal */ -qint64 QWebSocketPrivate::write(const QString &message) +qint64 QWebSocketPrivate::sendTextMessage(const QString &message) { return doWriteFrames(message.toUtf8(), false); } @@ -218,7 +218,7 @@ qint64 QWebSocketPrivate::write(const QString &message) /*! \internal */ -qint64 QWebSocketPrivate::write(const QByteArray &data) +qint64 QWebSocketPrivate::sendBinaryMessage(const QByteArray &data) { return doWriteFrames(data, true); } |