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 ) ); } };