소스 검색

Changed to use `const std::string &` as much as possible instead of `const char *` (#1331)

* Changed to use `const std::string &` as much as possible instead of `const char *`

* Fix problems on Windows
yhirose 3 년 전
부모
커밋
f0eb55b327
2개의 변경된 파일335개의 추가작업 그리고 305개의 파일을 삭제
  1. 334 304
      httplib.h
  2. 1 1
      test/test.cc

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 334 - 304
httplib.h


+ 1 - 1
test/test.cc

@@ -4180,7 +4180,7 @@ protected:
       res.set_content("Hello World!", "text/plain");
     });
 
-    t_ = thread([&]() { ASSERT_TRUE(svr_.listen(nullptr, PORT, AI_PASSIVE)); });
+    t_ = thread([&]() { ASSERT_TRUE(svr_.listen(std::string(), PORT, AI_PASSIVE)); });
 
     while (!svr_.is_running()) {
       std::this_thread::sleep_for(std::chrono::milliseconds(1));

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.