mirror of https://github.com/kiwix/libkiwix.git
Moved constructor into .cpp
This commit is contained in:
parent
0b7cd614c6
commit
d39e91f6bc
|
@ -151,6 +151,16 @@ std::unique_ptr<Response> Response::build_304(const ETag& etag)
|
|||
return response;
|
||||
}
|
||||
|
||||
ContentResponseBlueprint::ContentResponseBlueprint(const RequestContext* request,
|
||||
int httpStatusCode,
|
||||
const std::string& mimeType,
|
||||
const std::string& templateStr)
|
||||
: m_request(*request)
|
||||
, m_httpStatusCode(httpStatusCode)
|
||||
, m_mimeType(mimeType)
|
||||
, m_template(templateStr)
|
||||
{}
|
||||
|
||||
std::string ContentResponseBlueprint::getMessage(const std::string& msgId) const
|
||||
{
|
||||
return getTranslatedString(m_request.get_user_language(), msgId);
|
||||
|
|
|
@ -121,12 +121,7 @@ public: // functions
|
|||
ContentResponseBlueprint(const RequestContext* request,
|
||||
int httpStatusCode,
|
||||
const std::string& mimeType,
|
||||
const std::string& templateStr)
|
||||
: m_request(*request)
|
||||
, m_httpStatusCode(httpStatusCode)
|
||||
, m_mimeType(mimeType)
|
||||
, m_template(templateStr)
|
||||
{}
|
||||
const std::string& templateStr);
|
||||
|
||||
operator std::unique_ptr<Response>() const
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue