mirror of https://github.com/kiwix/libkiwix.git
Use a reference in `test/server.cpp` loop.
This is mainly to make the macos CI pass.
This commit is contained in:
parent
08464f23bc
commit
ed32e16db2
|
@ -77,7 +77,7 @@ private: // data
|
||||||
ZimFileServer::ZimFileServer(int serverPort, const FilePathCollection& zimpaths)
|
ZimFileServer::ZimFileServer(int serverPort, const FilePathCollection& zimpaths)
|
||||||
: manager(&this->library)
|
: manager(&this->library)
|
||||||
{
|
{
|
||||||
for ( const auto zimpath : zimpaths ) {
|
for ( const auto& zimpath : zimpaths ) {
|
||||||
if (!manager.addBookFromPath(zimpath, zimpath, "", false))
|
if (!manager.addBookFromPath(zimpath, zimpath, "", false))
|
||||||
throw std::runtime_error("Unable to add the ZIM file '" + zimpath + "'");
|
throw std::runtime_error("Unable to add the ZIM file '" + zimpath + "'");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue