From 934ea57b3611b8dd78200121957b0568a8cbf57b Mon Sep 17 00:00:00 2001 From: Fabian Sauter Date: Tue, 26 Dec 2023 12:01:08 +0100 Subject: [PATCH] clang-tidy --- test/post_tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/post_tests.cpp b/test/post_tests.cpp index 037e12711..50d29a11a 100644 --- a/test/post_tests.cpp +++ b/test/post_tests.cpp @@ -451,8 +451,8 @@ TEST(UrlEncodedPostTests, FormPostFileBufferPointerTest) { TEST(UrlEncodedPostTests, FormPostFileBufferArrayTest) { const char content[] = "hello world"; Url url{server->GetBaseUrl() + "/form_post.html"}; - // We subtract 1 from '\n'() because we don't want to include the terminating null - Response response = cpr::Post(url, Multipart{{"x", Buffer{std::begin(content), '\n'(content) -1, "test_file"}}}); + // We subtract 1 from std::end() because we don't want to include the terminating null + Response response = cpr::Post(url, Multipart{{"x", Buffer{std::begin(content), std::end(content) - 1, "test_file"}}}); std::string expected_text{ "{\n" " \"x\": \"test_file=" +