summaryrefslogtreecommitdiff
path: root/src/serializer.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-11-21 20:26:23 +0000
committerMike Buland <eichlan@xagasoft.com>2006-11-21 20:26:23 +0000
commit8fbf5fda24392d2a2ee19d6f40699a5de29da662 (patch)
treeac79c447bc4897d8cc350068504f184fdb8e4cfa /src/serializer.cpp
parent2bb05378f31311c353d43688fa753822ab9a6461 (diff)
downloadlibbu++-8fbf5fda24392d2a2ee19d6f40699a5de29da662.tar.gz
libbu++-8fbf5fda24392d2a2ee19d6f40699a5de29da662.tar.bz2
libbu++-8fbf5fda24392d2a2ee19d6f40699a5de29da662.tar.xz
libbu++-8fbf5fda24392d2a2ee19d6f40699a5de29da662.zip
Everything in libbu++ now passes -Wall, this should have been done a long time
ago.
Diffstat (limited to 'src/serializer.cpp')
-rw-r--r--src/serializer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/serializer.cpp b/src/serializer.cpp
index e03a9a4..0afaf4b 100644
--- a/src/serializer.cpp
+++ b/src/serializer.cpp
@@ -188,6 +188,8 @@ Serializer &operator<<( Serializer &ar, std::string &s )
188{ 188{
189 ar << (uint32_t)s.length(); 189 ar << (uint32_t)s.length();
190 ar.write( s.c_str(), s.length() ); 190 ar.write( s.c_str(), s.length() );
191
192 return ar;
191} 193}
192 194
193Serializer &operator>>( Serializer &ar, std::string &s ) 195Serializer &operator>>( Serializer &ar, std::string &s )
@@ -199,5 +201,7 @@ Serializer &operator>>( Serializer &ar, std::string &s )
199 ar.read( tmp, l ); 201 ar.read( tmp, l );
200 s = tmp; 202 s = tmp;
201 delete tmp; 203 delete tmp;
204
205 return ar;
202} 206}
203 207