summaryrefslogtreecommitdiffstats
path: root/src/network/compressor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/compressor.cc')
-rw-r--r--src/network/compressor.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/network/compressor.cc b/src/network/compressor.cc
index 2056f6b..ec49270 100644
--- a/src/network/compressor.cc
+++ b/src/network/compressor.cc
@@ -36,24 +36,23 @@
#include "src/util/dos_assert.h"
using namespace Network;
-using std::string;
-string Compressor::compress_str( const string &input )
+std::string Compressor::compress_str( const std::string &input )
{
long unsigned int len = BUFFER_SIZE;
dos_assert( Z_OK == compress( buffer, &len,
reinterpret_cast<const unsigned char *>( input.data() ),
input.size() ) );
- return string( reinterpret_cast<char *>( buffer ), len );
+ return std::string( reinterpret_cast<char *>( buffer ), len );
}
-string Compressor::uncompress_str( const string &input )
+std::string Compressor::uncompress_str( const std::string &input )
{
long unsigned int len = BUFFER_SIZE;
dos_assert( Z_OK == uncompress( buffer, &len,
reinterpret_cast<const unsigned char *>( input.data() ),
input.size() ) );
- return string( reinterpret_cast<char *>( buffer ), len );
+ return std::string( reinterpret_cast<char *>( buffer ), len );
}
/* construct on first use */