瀏覽代碼

Code cleanup

yhirose 10 年之前
父節點
當前提交
969744bfeb
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      httplib.h

+ 3 - 3
httplib.h

@@ -13,7 +13,7 @@
 #define _CRT_NONSTDC_NO_DEPRECATE
 
 #ifndef SO_SYNCHRONOUS_NONALERT
-#define SO_SYNCHRONOUS_NONALERT 0x20;
+#define SO_SYNCHRONOUS_NONALERT 0x20
 #endif
 #ifndef SO_OPENTYPE
 #define SO_OPENTYPE 0x7008
@@ -586,12 +586,12 @@ inline void parse_query_text(const std::string& s, Map& params)
 #ifdef _MSC_VER
 class WSInit {
 public:
-    WSInit::WSInit() {
+    WSInit() {
         WSADATA wsaData;
         WSAStartup(0x0002, &wsaData);
     }
 
-    WSInit::~WSInit() {
+    ~WSInit() {
         WSACleanup();
     }
 };