Make the server take a pointer to the library instead of a reference.

This commit is contained in:
Matthieu Gautier
2019-08-10 20:29:19 +02:00
parent ce09375c6c
commit 635d4438e5
2 changed files with 21 additions and 21 deletions

View File

@ -36,7 +36,7 @@ namespace kiwix
*
* @param library The library to serve.
*/
Server(Library& library, NameMapper* nameMapper=nullptr);
Server(Library* library, NameMapper* nameMapper=nullptr);
virtual ~Server();
@ -59,7 +59,7 @@ namespace kiwix
{ m_withTaskbar = withTaskbar; m_withLibraryButton = withLibraryButton; }
protected:
Library& m_library;
Library* mp_library;
NameMapper* mp_nameMapper;
std::string m_root = "";
std::string m_addr = "";