Refactoring enum Approach in enum class.
Suppress "engine::" Signed-off-by: FILLAU Jean-Maxime <jean-maxime.fillau@mapotempo.com>
This commit is contained in:
committed by
Patrick Niklaus
parent
c573cdb0ae
commit
98ad9d8b61
@@ -306,7 +306,7 @@ inline bool argumentsToParameter(const Nan::FunctionCallbackInfo<v8::Value> &arg
|
||||
|
||||
if (!approaches->IsArray())
|
||||
{
|
||||
Nan::ThrowError("Approaches must be an array of arrays of numbers");
|
||||
Nan::ThrowError("Approaches must be an arrays of strings");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -326,7 +326,7 @@ inline bool argumentsToParameter(const Nan::FunctionCallbackInfo<v8::Value> &arg
|
||||
|
||||
if (approach_raw->IsNull())
|
||||
{
|
||||
params->bearings.emplace_back();
|
||||
params->approaches.emplace_back();
|
||||
}
|
||||
else if (approach_raw->IsString())
|
||||
{
|
||||
@@ -343,7 +343,7 @@ inline bool argumentsToParameter(const Nan::FunctionCallbackInfo<v8::Value> &arg
|
||||
}
|
||||
else
|
||||
{
|
||||
Nan::ThrowError("'approach' param must be one of [curb, unrestricted]");
|
||||
Nan::ThrowError("'approaches' param must be one of [curb, unrestricted]");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user