diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-04-13 19:46:24 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-04-18 19:11:43 (GMT) |
commit | 07152630c3a9d04dd86f7b370ee30b553665f5c7 (patch) | |
tree | 5b3f57a46d6a4ae1f6a6c60cb095866a0e752ef9 /Swiften/Base/ByteArray.h | |
parent | 68b51298da4fcfcdc3bb81a9abba6c56809ae1b7 (diff) | |
download | swift-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.h | 4 |
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); |