summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-04-13 19:46:24 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-04-18 19:11:43 (GMT)
commit07152630c3a9d04dd86f7b370ee30b553665f5c7 (patch)
tree5b3f57a46d6a4ae1f6a6c60cb095866a0e752ef9 /Swiften/Base/ByteArray.h
parent68b51298da4fcfcdc3bb81a9abba6c56809ae1b7 (diff)
downloadswift-contrib-07152630c3a9d04dd86f7b370ee30b553665f5c7.zip
swift-contrib-07152630c3a9d04dd86f7b370ee30b553665f5c7.tar.bz2
Chop off trailing \0 in ByteArray::toString().
Diffstat (limited to 'Swiften/Base/ByteArray.h')
-rw-r--r--Swiften/Base/ByteArray.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/Swiften/Base/ByteArray.h b/Swiften/Base/ByteArray.h
index d55da1f..ebc22d8 100644
--- a/Swiften/Base/ByteArray.h
+++ b/Swiften/Base/ByteArray.h
@@ -120,9 +120,7 @@ namespace Swift {
return data_.end();
}
- std::string toString() const {
- return std::string(reinterpret_cast<const char*>(getData()), getSize());
- }
+ std::string toString() const;
void readFromFile(const std::string& file);