Order ServerPaths members by memory size, pass ServerPaths by ref

This commit is contained in:
Frederic Rodrigo
2015-01-06 15:33:57 +00:00
parent 598f5519d1
commit 12f2acc9ff
4 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -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
View File
@@ -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);