Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4e0add7

Browse files
committed
Use std::unique_ptr for pimpl idiom in HTTP client.
1 parentff5f714 commit4e0add7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

‎http/src/http/v2/client/client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ namespace network {
397397
: pimpl_(new impl(std::move(mock_resolver),
398398
std::move(mock_connection), options)) {}
399399

400-
client::~client() {delete pimpl_;}
400+
client::~client() { }
401401

402402
std::future<response>client::execute(request req,
403403
request_options options) {

‎http/src/http/v2/client/client_errors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespacenetwork {
1111
namespacehttp {
12-
namespacev2 {
12+
inlinenamespacev2 {
1313
classclient_category_impl :publicstd::error_category {
1414

1515
public:

‎http/src/network/http/v2/client/client.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ class client {
395395
private:
396396

397397
structimpl;
398-
impl *pimpl_;
398+
std::unique_ptr<impl>pimpl_;
399399

400400
};
401401
}// namespace v2

‎uri

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp