From 392726bad38e86d2e798858c86d4b2908cb37cae Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Sun, 8 Dec 2013 19:42:48 +0100 Subject: [PATCH] remove pesky sstream --- Server/ServerFactory.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Server/ServerFactory.h b/Server/ServerFactory.h index 64bb29c0c..c34350b70 100644 --- a/Server/ServerFactory.h +++ b/Server/ServerFactory.h @@ -36,7 +36,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include -#include struct ServerFactory : boost::noncopyable { static Server * CreateServer(std::string& ip_address, int ip_port, int threads) { @@ -44,12 +43,12 @@ struct ServerFactory : boost::noncopyable { SimpleLogger().Write() << "http 1.1 compression handled by zlib version " << zlibVersion(); - std::stringstream port_stream; - port_stream << ip_port; + std::string port_stream; + intToString(ip_port, port_stream); return new Server( ip_address, - port_stream.str(), - std::min( omp_get_num_procs(), threads) + port_stream, + std::min( omp_get_num_procs(), threads ) ); } };