mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
Merge pull request #785 from fhuberts/fix-Wextra-semi
Fix compiler warnings (-Wextra-semi)
This commit is contained in:
commit
fd3d7b796d
@ -72,11 +72,11 @@ public:
|
||||
/**
|
||||
* Optionally override this method. It should contain logic run before all test iterations.
|
||||
*/
|
||||
virtual void before(){};
|
||||
virtual void before(){}
|
||||
/**
|
||||
* Optionally override this method. It should contain logic run after all test iterations.
|
||||
*/
|
||||
virtual void after(){};
|
||||
virtual void after(){}
|
||||
|
||||
/**
|
||||
* Run this test repeatedly for specified number of times.
|
||||
|
@ -46,7 +46,7 @@ public:
|
||||
private:
|
||||
F lambda;
|
||||
public:
|
||||
ConditionTemplate(const F& f) : lambda(f) {};
|
||||
ConditionTemplate(const F& f) : lambda(f) {}
|
||||
bool check() override {
|
||||
return lambda();
|
||||
}
|
||||
|
@ -162,7 +162,7 @@ class LogCategory {
|
||||
: tag(std::move(pTag))
|
||||
, categoryEnabled(pCategoryEnabled)
|
||||
, enabledPriorities(pEnabledPriorities)
|
||||
{};
|
||||
{}
|
||||
|
||||
/**
|
||||
* The tag for this category
|
||||
|
@ -177,7 +177,7 @@ public:
|
||||
class StringKeyLabel : public MemoryLabel {
|
||||
public:
|
||||
|
||||
StringKeyLabel() : MemoryLabel() {};
|
||||
StringKeyLabel() : MemoryLabel() {}
|
||||
|
||||
StringKeyLabel(std::nullptr_t) : MemoryLabel() {}
|
||||
|
||||
@ -241,7 +241,7 @@ public:
|
||||
class StringKeyLabelCI : public MemoryLabel {
|
||||
public:
|
||||
|
||||
StringKeyLabelCI() : MemoryLabel() {};
|
||||
StringKeyLabelCI() : MemoryLabel() {}
|
||||
|
||||
StringKeyLabelCI(std::nullptr_t) : MemoryLabel() {}
|
||||
|
||||
|
@ -84,7 +84,7 @@ class DtoC : public DtoA {
|
||||
DTO_FIELD(String, b);
|
||||
DTO_FIELD(String, c);
|
||||
|
||||
DTO_HC_EQ(a, b, c);
|
||||
DTO_HC_EQ(a, b, c)
|
||||
|
||||
};
|
||||
|
||||
|
@ -83,22 +83,22 @@ public:
|
||||
OATPP_ASSERT_HTTP(false, Status::CODE_503, "Service unavailable")
|
||||
}
|
||||
|
||||
ADD_CORS(cors);
|
||||
ADD_CORS(cors)
|
||||
ENDPOINT("GET", "/cors", cors) {
|
||||
return createResponse(Status::CODE_200, "Ping");
|
||||
}
|
||||
|
||||
ADD_CORS(corsOrigin, "127.0.0.1");
|
||||
ADD_CORS(corsOrigin, "127.0.0.1")
|
||||
ENDPOINT("GET", "/cors-origin", corsOrigin) {
|
||||
return createResponse(Status::CODE_200, "Pong");
|
||||
}
|
||||
|
||||
ADD_CORS(corsOriginMethods, "127.0.0.1", "GET, OPTIONS");
|
||||
ADD_CORS(corsOriginMethods, "127.0.0.1", "GET, OPTIONS")
|
||||
ENDPOINT("GET", "/cors-origin-methods", corsOriginMethods) {
|
||||
return createResponse(Status::CODE_200, "Ping");
|
||||
}
|
||||
|
||||
ADD_CORS(corsOriginMethodsHeaders, "127.0.0.1", "GET, OPTIONS", "X-PWNT");
|
||||
ADD_CORS(corsOriginMethodsHeaders, "127.0.0.1", "GET, OPTIONS", "X-PWNT")
|
||||
ENDPOINT("GET", "/cors-origin-methods-headers", corsOriginMethodsHeaders) {
|
||||
return createResponse(Status::CODE_200, "Pong");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user