This operation should be a no-op anyway, since at this point in time,
the fromAscii and toAscii functions simply call their fromLatin1 and
toLatin1 counterparts.
Task-number: QTBUG-21872
Change-Id: I8bcc6bbe2fcd49b31a4850029b2830b1f8cb0353
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
if (!m_httpAborted) {
while (reply->canReadLine()) {
QByteArray ba = reply->readLine();
- const QStringList lst = QString::fromAscii(ba.constData()).split(QLatin1Char('|'));
+ const QStringList lst = QString::fromLatin1(ba.constData()).split(QLatin1Char('|'));
if (lst.count() != 4) {
QMessageBox::information(this, m_windowTitle,
tr("Documentation info file is corrupt!"));
#if defined(UNICODE) || defined(_CL_HAVE_WCHAR_H) && defined(_CL_HAVE_WCHAR_T)
str.toWCharArray(string);
#else
- const QByteArray ba = str.toAscii();
+ const QByteArray ba = str.toLatin1();
strcpy(string, ba.constData());
#endif
return string;
: QCLuceneReader()
{
const QByteArray tmpPath = path.toLocal8Bit();
- const QByteArray tmpEncoding = encoding.toAscii();
+ const QByteArray tmpEncoding = encoding.toLatin1();
d->reader = new lucene::util::FileReader(tmpPath.constData(),
tmpEncoding.constData(), int32_t(cacheLength), int32_t(cacheBuffer));
}