diff options
Diffstat (limited to 'src/serializer.cpp')
-rw-r--r-- | src/serializer.cpp | 4 |
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 | ||
193 | Serializer &operator>>( Serializer &ar, std::string &s ) | 195 | Serializer &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 | ||