diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-05-03 15:41:25 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-03 17:31:05 +0200 |
commit | f750a3679006222059291a4e65935ecea36c2da0 (patch) | |
tree | ad6feaf693db331423dbce9014eb9dda90ff6e96 /src/assistant/clucene | |
parent | 5f8a6612be2cfc0f08dc151bf1f0c1f481b98311 (diff) | |
download | qttools-f750a3679006222059291a4e65935ecea36c2da0.tar.gz |
Change uses of {to,from}Ascii to {to,from}Latin1 [Assistant]
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>
Diffstat (limited to 'src/assistant/clucene')
-rw-r--r-- | src/assistant/clucene/qclucene_global_p.h | 2 | ||||
-rw-r--r-- | src/assistant/clucene/qreader.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/assistant/clucene/qclucene_global_p.h b/src/assistant/clucene/qclucene_global_p.h index 92702dabe..97b8248f2 100644 --- a/src/assistant/clucene/qclucene_global_p.h +++ b/src/assistant/clucene/qclucene_global_p.h @@ -110,7 +110,7 @@ namespace { #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; diff --git a/src/assistant/clucene/qreader.cpp b/src/assistant/clucene/qreader.cpp index a8bb173de..227ade081 100644 --- a/src/assistant/clucene/qreader.cpp +++ b/src/assistant/clucene/qreader.cpp @@ -88,7 +88,7 @@ QCLuceneFileReader::QCLuceneFileReader(const QString &path, const QString &encod : 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)); } |