src/types.cpp

changeset 508
7ace3537a560
parent 504
6a1fa662bfc1
child 513
29eb671b34f6
equal deleted inserted replaced
507:fc76d38c3530 508:7ace3537a560
217 217
218 for (short i = 0; i < 9; ++i) 218 for (short i = 0; i < 9; ++i)
219 { if (i > 0) 219 { if (i > 0)
220 val += ' '; 220 val += ' ';
221 221
222 val += ftoa (m_vals[i]); 222 val += str::number (m_vals[i]);
223 } 223 }
224 224
225 return val; 225 return val;
226 } 226 }
227 227
280 StringFormatArg::StringFormatArg (const qchar& v) 280 StringFormatArg::StringFormatArg (const qchar& v)
281 { m_val = v; 281 { m_val = v;
282 } 282 }
283 283
284 StringFormatArg::StringFormatArg (const float& v) 284 StringFormatArg::StringFormatArg (const float& v)
285 { m_val = ftoa (v); 285 { m_val = str::number (v);
286 } 286 }
287 287
288 StringFormatArg::StringFormatArg (const double& v) 288 StringFormatArg::StringFormatArg (const double& v)
289 { m_val = ftoa (v); 289 { m_val = str::number (v);
290 } 290 }
291 291
292 StringFormatArg::StringFormatArg (const vertex& v) 292 StringFormatArg::StringFormatArg (const vertex& v)
293 { m_val = v.stringRep (false); 293 { m_val = v.stringRep (false);
294 } 294 }

mercurial