mirror of https://github.com/kiwix/libkiwix.git
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:
parent
95d4dd63ac
commit
feb30d08aa
|
@ -109,8 +109,8 @@ std::unique_ptr<ContentResponse> Response::build_404(const InternalServer& serve
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern const UrlNotFoundMsg urlNotFoundMsg;
|
const UrlNotFoundMsg urlNotFoundMsg;
|
||||||
extern const InvalidUrlMsg invalidUrlMsg;
|
const InvalidUrlMsg invalidUrlMsg;
|
||||||
|
|
||||||
std::unique_ptr<ContentResponse> ContentResponseBlueprint::generateResponseObject() const
|
std::unique_ptr<ContentResponse> ContentResponseBlueprint::generateResponseObject() const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue