src/model.cpp

changeset 1135
8e0691be0b6f
parent 1117
efcb47c64a72
child 1139
51303023d651
equal deleted inserted replaced
1134:daa9808d626e 1135:8e0691be0b6f
321 Vertex v; 321 Vertex v;
322 v.apply ([&] (Axis ax, double& a) { a = s[n + ax].toDouble(); }); 322 v.apply ([&] (Axis ax, double& a) { a = s[n + ax].toDouble(); });
323 return v; 323 return v;
324 } 324 }
325 325
326 static int32 StringToNumber (QString a, bool* ok = nullptr) 326 static qint32 StringToNumber (QString a, bool* ok = nullptr)
327 { 327 {
328 int base = 10; 328 int base = 10;
329 329
330 if (a.startsWith ("0x")) 330 if (a.startsWith ("0x"))
331 { 331 {

mercurial