Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

Commit

Permalink
Use std::unique_ptr for pimpl idiom in HTTP client.
Browse files Browse the repository at this point in the history
  • Loading branch information
glynos committed Dec 24, 2014
1 parent ff5f714 commit 4e0add7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion http/src/http/v2/client/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ namespace network {
: pimpl_(new impl(std::move(mock_resolver),
std::move(mock_connection), options)) {}

client::~client() { delete pimpl_; }
client::~client() { }

std::future<response> client::execute(request req,
request_options options) {
Expand Down
2 changes: 1 addition & 1 deletion http/src/http/v2/client/client_errors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace network {
namespace http {
namespace v2 {
inline namespace v2 {
class client_category_impl : public std::error_category {

public:
Expand Down
2 changes: 1 addition & 1 deletion http/src/network/http/v2/client/client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ class client {
private:

struct impl;
impl *pimpl_;
std::unique_ptr<impl> pimpl_;

};
} // namespace v2
Expand Down
2 changes: 1 addition & 1 deletion uri
Submodule uri updated 2 files
+2 −5 src/detail/uri_parse.cpp
+0 −12 test/uri_test.cpp

0 comments on commit 4e0add7

Please sign in to comment.