Use a reference in `test/server.cpp` loop.

This is mainly to make the macos CI pass.
This commit is contained in:
Matthieu Gautier 2020-10-28 16:08:37 +01:00
parent 08464f23bc
commit ed32e16db2
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ private: // data
ZimFileServer::ZimFileServer(int serverPort, const FilePathCollection& zimpaths)
: manager(&this->library)
{
for ( const auto zimpath : zimpaths ) {
for ( const auto& zimpath : zimpaths ) {
if (!manager.addBookFromPath(zimpath, zimpath, "", false))
throw std::runtime_error("Unable to add the ZIM file '" + zimpath + "'");
}