Skip to content

Commit ef3ce37

Browse files
Fixed a couple of simple style issues
1 parent 5f32dda commit ef3ce37

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

cpr/cookies.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#include "cpr/cookies.h"
22
#include "cpr/curlholder.h"
3-
#include "cpr/util.h"
43
#include <chrono>
54
#include <ctime>
65
#include <iomanip>
76
#include <sstream>
87
#include <string>
8+
#include <string_view>
99

1010
namespace cpr {
1111
const std::string Cookie::GetDomain() const {

cpr/curlholder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#include <cassert>
33
#include <curl/curl.h>
44
#include <curl/easy.h>
5-
#include <string>
5+
#include <string_view>
6+
#include "cpr/secure_string.h"
67

78
namespace cpr {
89
CurlHolder::CurlHolder() {

cpr/session.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ const std::optional<Response> Session::intercept() {
903903
if (current_interceptor_ == interceptors_.end()) {
904904
current_interceptor_ = first_interceptor_;
905905
} else {
906-
current_interceptor_++;
906+
++current_interceptor_;
907907
}
908908

909909
if (current_interceptor_ != interceptors_.end()) {

0 commit comments

Comments
 (0)