Skip to content

Commit cbec111

Browse files
include/nodejs/node_osrm.hpp: clang-format
1 parent 7d369b9 commit cbec111

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

include/nodejs/node_osrm.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct Engine final : public Nan::ObjectWrap
3737
std::shared_ptr<osrm::OSRM> this_;
3838
};
3939

40-
} // ns node_osrm
40+
} // namespace node_osrm
4141

4242
NODE_MODULE(osrm, node_osrm::Engine::Init)
4343

include/nodejs/node_osrm_support.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ inline engine_config_ptr argumentsToEngineConfig(const Nan::FunctionCallbackInfo
116116

117117
if (args[0]->IsString())
118118
{
119-
engine_config->storage_config = osrm::StorageConfig(
120-
*Nan::Utf8String(Nan::To<v8::String>(args[0]).ToLocalChecked()));
119+
engine_config->storage_config =
120+
osrm::StorageConfig(*Nan::Utf8String(Nan::To<v8::String>(args[0]).ToLocalChecked()));
121121
engine_config->use_shared_memory = false;
122122
return engine_config;
123123
}
@@ -292,8 +292,7 @@ inline engine_config_ptr argumentsToEngineConfig(const Nan::FunctionCallbackInfo
292292
if (max_locations_trip->IsNumber())
293293
engine_config->max_locations_trip = Nan::To<int>(max_locations_trip).FromJust();
294294
if (max_locations_viaroute->IsNumber())
295-
engine_config->max_locations_viaroute =
296-
Nan::To<int>(max_locations_viaroute).FromJust();
295+
engine_config->max_locations_viaroute = Nan::To<int>(max_locations_viaroute).FromJust();
297296
if (max_locations_distance_table->IsNumber())
298297
engine_config->max_locations_distance_table =
299298
Nan::To<int>(max_locations_distance_table).FromJust();
@@ -537,7 +536,8 @@ inline bool argumentsToParameter(const Nan::FunctionCallbackInfo<v8::Value> &arg
537536
return false;
538537
}
539538

540-
params->bearings.push_back(osrm::Bearing{static_cast<short>(bearing), static_cast<short>(range)});
539+
params->bearings.push_back(
540+
osrm::Bearing{static_cast<short>(bearing), static_cast<short>(range)});
541541
}
542542
else
543543
{
@@ -587,8 +587,7 @@ inline bool argumentsToParameter(const Nan::FunctionCallbackInfo<v8::Value> &arg
587587
return false;
588588
}
589589

590-
params->hints.push_back(
591-
osrm::engine::Hint::FromBase64(*Nan::Utf8String(hint)));
590+
params->hints.push_back(osrm::engine::Hint::FromBase64(*Nan::Utf8String(hint)));
592591
}
593592
else if (hint->IsNull())
594593
{
@@ -1582,7 +1581,8 @@ argumentsToMatchParameter(const Nan::FunctionCallbackInfo<v8::Value> &args,
15821581
Nan::ThrowError("Waypoints must correspond with the index of an input coordinate");
15831582
return match_parameters_ptr();
15841583
}
1585-
params->waypoints.emplace_back(static_cast<unsigned>(Nan::To<unsigned>(waypoint_value).FromJust()));
1584+
params->waypoints.emplace_back(
1585+
static_cast<unsigned>(Nan::To<unsigned>(waypoint_value).FromJust()));
15861586
}
15871587
}
15881588

0 commit comments

Comments
 (0)