qt6-bb10/src/printsupport
Anton Kudryavtsev 6aa935cd92 Use QString::fromLatin1() less to avoid string allocations
QString::fromLatin1 always allocates memory, but there are
cases where we can avoid/reduce allocations or/and reduce
text size, e.g.:

QStringBuilder expressions
Fix: replace QString::fromLatin1 with QL1S

QString::fromLatin1().arg(String) pattern
Fix: replace with QStringBuilder

Overloaded functions with QL1S arg
Fix: replace QString::fromLatin1 with QL1S

In rare cases if there is no overloaded function
with QL1S and we have deal with string literal,
replace QString::fromLatin1 with QStringLiteral.

Change-Id: Iabe1a3cc0830f40ef78a0548afa4368583c31def
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2016-09-15 15:55:57 +00:00
..
dialogs Use QString::fromLatin1() less to avoid string allocations 2016-09-15 15:55:57 +00:00
doc Merge remote-tracking branch 'origin/5.6' into 5.7 2016-05-19 12:55:27 +02:00
kernel Make things compile with the printer feature disabled 2016-09-15 08:24:04 +00:00
widgets fix build with various QT_NO_* defines 2016-08-26 07:39:53 +00:00
configure.json Convert the old feature system 2016-09-15 08:24:10 +00:00
printsupport.pro QtConcurrent/QtOpenGL(Extensions)/QtPrintSupport/QtTestLib/QtXml: add QT_NO_FOREACH 2016-05-12 21:42:10 +00:00