mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
Correctly define the variable urlNotFoundMsg
and invalidUrlMsg
.
As we must declare the two variables as `extern` in response.h, we must define it somewhere (and `response.cpp` is a good place).
This commit is contained in:
@ -109,8 +109,8 @@ std::unique_ptr<ContentResponse> Response::build_404(const InternalServer& serve
|
||||
return response;
|
||||
}
|
||||
|
||||
extern const UrlNotFoundMsg urlNotFoundMsg;
|
||||
extern const InvalidUrlMsg invalidUrlMsg;
|
||||
const UrlNotFoundMsg urlNotFoundMsg;
|
||||
const InvalidUrlMsg invalidUrlMsg;
|
||||
|
||||
std::unique_ptr<ContentResponse> ContentResponseBlueprint::generateResponseObject() const
|
||||
{
|
||||
|
Reference in New Issue
Block a user