diff options
Diffstat (limited to 'Swiften/Session')
-rw-r--r-- | Swiften/Session/BasicSessionStream.cpp | 4 | ||||
-rw-r--r-- | Swiften/Session/Session.h | 2 | ||||
-rw-r--r-- | Swiften/Session/SessionTracer.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Swiften/Session/BasicSessionStream.cpp b/Swiften/Session/BasicSessionStream.cpp index 7e5f24b..579631f 100644 --- a/Swiften/Session/BasicSessionStream.cpp +++ b/Swiften/Session/BasicSessionStream.cpp @@ -193,11 +193,11 @@ void BasicSessionStream::handleConnectionFinished(const boost::optional<Connecti } void BasicSessionStream::handleDataRead(const ByteArray& data) { - onDataRead(data.toString()); + onDataRead(byteArrayToString(data)); } void BasicSessionStream::handleDataWritten(const ByteArray& data) { - onDataWritten(data.toString()); + onDataWritten(byteArrayToString(data)); } }; diff --git a/Swiften/Session/Session.h b/Swiften/Session/Session.h index d399cd1..04ae8d5 100644 --- a/Swiften/Session/Session.h +++ b/Swiften/Session/Session.h @@ -15,13 +15,13 @@ #include <Swiften/Elements/Element.h> #include <Swiften/Network/Connection.h> #include <Swiften/StreamStack/ConnectionLayer.h> +#include <Swiften/Base/ByteArray.h> namespace Swift { class ProtocolHeader; class StreamStack; class JID; class Element; - class ByteArray; class PayloadParserFactoryCollection; class PayloadSerializerCollection; class XMPPLayer; diff --git a/Swiften/Session/SessionTracer.cpp b/Swiften/Session/SessionTracer.cpp index 6d41e40..060109b 100644 --- a/Swiften/Session/SessionTracer.cpp +++ b/Swiften/Session/SessionTracer.cpp @@ -22,7 +22,7 @@ void SessionTracer::printData(char direction, const ByteArray& data) { std::cerr << direction; } std::cerr << " " << session->getRemoteJID()<< " " << direction << direction << std::endl; - std::cerr << data.toString() << std::endl; + std::cerr << byteArrayToString(data) << std::endl; } } |