diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-05-02 16:32:26 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-03 11:33:05 +0200 |
commit | d9f4b130aa1c529c50d1e7a9d55c13de7ea72b08 (patch) | |
tree | 7d5096addfdf902007b039e3c8b4252ae411d964 /src/printsupport/kernel | |
parent | 5e2590b537a6896c8a15ffcbd898c06b8b4ddfcf (diff) |
Change remaining uses of {to,from}Ascii to {to,from}Latin1 [QtPrintSupport]
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: I73963515a44175cb63251d0508d5f28d78076d76
Reviewed-by: John Layt <jlayt@kde.org>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/printsupport/kernel')
-rw-r--r-- | src/printsupport/kernel/qprinterinfo_unix.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/printsupport/kernel/qprinterinfo_unix.cpp b/src/printsupport/kernel/qprinterinfo_unix.cpp index 241986d9e8..b87d2a160b 100644 --- a/src/printsupport/kernel/qprinterinfo_unix.cpp +++ b/src/printsupport/kernel/qprinterinfo_unix.cpp @@ -363,7 +363,7 @@ char *qt_parsePrintersConf(QList<QPrinterDescription> *printers, bool *found) j++; // that's our default printer defaultPrinter = - qstrdup(printerDesc.mid(i, j-i).toAscii().data()); + qstrdup(printerDesc.mid(i, j-i).toLatin1().data()); printerName = QString(); printerDesc = QString(); } else if (printerName == QLatin1String("_all")) { @@ -758,7 +758,7 @@ Q_PRINTSUPPORT_EXPORT int qt_getLprPrinters(QList<QPrinterDescription>& printers if (def.readLine(etcLpDefault.data(), 1024) > 0) { QRegExp rx(QLatin1String("^(\\S+)")); if (rx.indexIn(QString::fromLatin1(etcLpDefault)) != -1) - etcLpDefault = rx.cap(1).toAscii(); + etcLpDefault = rx.cap(1).toLatin1(); } } } |