QStringList spline;
QLocale locale;
foreach(const BPoint &p, m_points) {
- spline << QString("%1;%2#%3;%4#%5;%6").arg(locale.toString(p.h1.x())).arg(locale.toString(p.h1.y()))
+ spline << QString::fromLatin1("%1;%2#%3;%4#%5;%6").arg(locale.toString(p.h1.x())).arg(locale.toString(p.h1.y()))
.arg(locale.toString(p.p.x())).arg(locale.toString(p.p.y()))
.arg(locale.toString(p.h2.x())).arg(locale.toString(p.h2.y()));
}
- return spline.join("|");
+ return spline.join(QLatin1String("|"));
}
int CubicBezierSpline::setPoint(int ix, const BPoint& point)