Refactoring enum Approach in enum class.

Suppress "engine::"

Signed-off-by: FILLAU Jean-Maxime <jean-maxime.fillau@mapotempo.com>
This commit is contained in:
FILLAU Jean-Maxime
2017-05-29 16:13:15 +02:00
committed by Patrick Niklaus
parent c573cdb0ae
commit 98ad9d8b61
6 changed files with 81 additions and 77 deletions
+3 -3
View File
@@ -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;
}
}