Parcourir la source

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 il y a 3 ans
Parent
commit
f0eb55b327
2 fichiers modifiés avec 335 ajouts et 305 suppressions
  1. 334 304
      httplib.h
  2. 1 1
      test/test.cc

Fichier diff supprimé car celui-ci est trop grand
+ 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));

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff