summaryrefslogtreecommitdiff
path: root/src/webchannel/qwebsockettransport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webchannel/qwebsockettransport.cpp')
-rw-r--r--src/webchannel/qwebsockettransport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webchannel/qwebsockettransport.cpp b/src/webchannel/qwebsockettransport.cpp
index be991a8..9c9ef97 100644
--- a/src/webchannel/qwebsockettransport.cpp
+++ b/src/webchannel/qwebsockettransport.cpp
@@ -67,12 +67,12 @@ QWebSocketTransport::~QWebSocketTransport()
void QWebSocketTransport::sendMessage(const QByteArray &message) const
{
- d->sendMessage(message);
+ d->sendMessage(QString::fromUtf8(message));
}
void QWebSocketTransport::sendMessage(const QString &message) const
{
- d->sendMessage(message.toUtf8());
+ d->sendMessage(message);
}
void QWebSocketTransport::setMessageHandler(QWebChannelMessageHandlerInterface *handler)