From 1f4ed9d4a3ef5986bf697dc4454173007f047d99 Mon Sep 17 00:00:00 2001 From: Ole Christian Eidheim Date: Mon, 7 Jul 2014 21:01:11 +0200 Subject: [PATCH] removed unnecessary move (this is done automatically in c++11) --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 505e376..c9a82b4 100644 --- a/main.cpp +++ b/main.cpp @@ -18,7 +18,7 @@ int main() { //Retrieve string from istream (*request.content) stringstream ss; *request.content >> ss.rdbuf(); - string content=move(ss.str()); + string content=ss.str(); response << "HTTP/1.1 200 OK\r\nContent-Length: " << content.length() << "\r\n\r\n" << content; }; @@ -72,4 +72,4 @@ int main() { httpserver.start(); return 0; -} \ No newline at end of file +}