From ed32e16db29961b1fff8ed3f6fa5918b1a799080 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Wed, 28 Oct 2020 16:08:37 +0100 Subject: [PATCH] Use a reference in `test/server.cpp` loop. This is mainly to make the macos CI pass. --- test/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/server.cpp b/test/server.cpp index af4837123..2e18657c0 100644 --- a/test/server.cpp +++ b/test/server.cpp @@ -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 + "'"); }