Changed: Replace sscanf by fromString

This commit is contained in:
kervala 2016-10-20 12:34:38 +02:00
parent b639b89169
commit 86f66e678d

View file

@ -419,13 +419,13 @@ int main(int argc, char* argv[])
float weldThreshold, middleEdgeWeldThreshold; float weldThreshold, middleEdgeWeldThreshold;
if (::sscanf(argv[2], "%f", &weldThreshold) != 1) if (!fromString(argv[2], weldThreshold))
{ {
nlinfo("invalid weldThreshold"); nlinfo("invalid weldThreshold");
return -1; return -1;
} }
if (::sscanf(argv[3], "%f", &middleEdgeWeldThreshold) != 1) if (!fromString(argv[3], middleEdgeWeldThreshold))
{ {
nlinfo("invalid middleEdgeWeldThreshold"); nlinfo("invalid middleEdgeWeldThreshold");
return -1; return -1;