Order ServerPaths members by memory size, pass ServerPaths by ref
This commit is contained in:
@@ -57,7 +57,7 @@ namespace boost { namespace interprocess { class named_mutex; } }
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
OSRM_impl::OSRM_impl(ServerConfig serverConfig)
|
||||
OSRM_impl::OSRM_impl(ServerConfig &serverConfig)
|
||||
{
|
||||
if (serverConfig.use_shared_memory)
|
||||
{
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ class OSRM_impl
|
||||
using PluginMap = std::unordered_map<std::string, BasePlugin *>;
|
||||
|
||||
public:
|
||||
OSRM_impl(ServerConfig serverConfig);
|
||||
OSRM_impl(ServerConfig &serverConfig);
|
||||
OSRM_impl(const OSRM_impl &) = delete;
|
||||
virtual ~OSRM_impl();
|
||||
void RunQuery(RouteParameters &route_parameters, http::Reply &reply);
|
||||
|
||||
Reference in New Issue
Block a user