mirror of
https://github.com/kiwix/libkiwix.git
synced 2026-10-27 03:19:31 -04:00
Use a reference in test/server.cpp loop.
This is mainly to make the macos CI pass.
This commit is contained in:
1 parent
08464f23bc
commit
ed32e16db2
1 file changed
+1
-1
+1
-1
@@ -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 + "'");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user