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 + "'"); }