Skip to content

Commit

Permalink
Clang-Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Sauter committed Sep 22, 2024
1 parent 26a444f commit 294d3bb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cpr/multiperform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#include <cassert>
#include <cstddef>
#include <curl/curl.h>
#include <curl/multi.h>
#include <curl/curlver.h>
#include <curl/multi.h>
#include <functional>
#include <iosfwd>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion include/cpr/callback.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include "cprtypes.h"

#include <atomic>
#include <functional>
#include <cstdint>
#include <functional>
#include <optional>
#include <utility>

Expand Down
4 changes: 2 additions & 2 deletions test/abstractServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ bool AbstractServer::IsConnectionActive(mg_mgr* mgr, mg_connection* conn) {
return false;
}

uint16_t AbstractServer::GetRemotePort(const mg_connection* conn) {
uint16_t AbstractServer::GetRemotePort(const mg_connection* conn) {
return (conn->rem.port >> 8) | (conn->rem.port << 8);
}

uint16_t AbstractServer::GetLocalPort(const mg_connection* conn) {
uint16_t AbstractServer::GetLocalPort(const mg_connection* conn) {
return (conn->loc.port >> 8) | (conn->loc.port << 8);
}

Expand Down
2 changes: 1 addition & 1 deletion test/resolve_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ TEST(ResolveTests, RedirectMultiple) {
Resolve resolve2{"www.example1.com", "127.0.0.1", {server->GetPort()}};

Response response = cpr::Get(url1, std::vector<Resolve>{resolve1, resolve2}, Header{{"RedirectLocation", url2.str()}});

std::string expected_text{"Hello world!"};
EXPECT_EQ(expected_text, response.text);
EXPECT_EQ(url2, response.url);
Expand Down

0 comments on commit 294d3bb

Please sign in to comment.