Skip to content

Commit 37b2137

Browse files
committed
http: Change boost::scoped_ptr to std::unique_ptr in HTTPRequest
No need for boost here.
1 parent f97b410 commit 37b2137

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/httpserver.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636

3737
#include <boost/algorithm/string/case_conv.hpp> // for to_lower()
3838
#include <boost/foreach.hpp>
39-
#include <boost/scoped_ptr.hpp>
4039

4140
/** Maximum size of http request (request line + headers) */
4241
static const size_t MAX_HEADERS_SIZE = 8192;
@@ -54,7 +53,7 @@ class HTTPWorkItem : public HTTPClosure
5453
func(req.get(), path);
5554
}
5655

57-
boost::scoped_ptr<HTTPRequest> req;
56+
std::unique_ptr<HTTPRequest> req;
5857

5958
private:
6059
std::string path;

0 commit comments

Comments
 (0)