qt6-bb10/src/printsupport/kernel
Marc Mutz 51089a5742 Use Q_UNLIKELY for every qFatal()/qCritical()
If, after checking a condition, we issue a qFatal()
or a qCritical(), by definition that check is
unlikely to be true.

Tell the compiler so it can move the error handling
code out of the normal code path to increase the
effective icache size.

Moved conditional code around where possible so that
we could always use Q_UNLIKELY, instead of having to
revert to Q_LIKELY here and there.

In some cases, simplified the expressions newly wrapped
in Q_UNLIKELY as a drive-by.

Change-Id: I67537d62b04bc6977d69254690c5ebbdf98bfd6d
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2015-11-29 22:59:17 +00:00
..
kernel.pri QPlatformPrintDevice - New QPA base class 2014-03-17 13:45:31 +01:00
qcups.cpp QCUPSSupport: clear the job-hold-until option if jobHoldToString() is empty 2015-06-19 16:29:46 +00:00
qcups_p.h Mark some QCUPSSupport enums as primitive 2015-07-18 06:20:01 +00:00
qpaintengine_alpha.cpp Merge remote-tracking branch 'origin/5.5' into 5.6 2015-10-02 16:59:55 +02:00
qpaintengine_alpha_p.h Speed up printing when drawing opaque primitives. 2015-09-23 16:38:07 +00:00
qpaintengine_preview.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
qpaintengine_preview_p.h Update copyright headers 2015-02-11 06:49:51 +00:00
qplatformprintdevice.cpp Clean up API of QPlatformPrintDevice (QPA). 2015-05-05 14:06:27 +00:00
qplatformprintdevice.h Clean up API of QPlatformPrintDevice (QPA). 2015-05-05 14:06:27 +00:00
qplatformprintersupport.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
qplatformprintersupport.h Update copyright headers 2015-02-11 06:49:51 +00:00
qplatformprintplugin.cpp Don't try to load plugins if QT_NO_LIBRARY is set. 2015-06-12 11:57:07 +00:00
qplatformprintplugin.h Introduce a version number to QPlatformPrinterSupportFactoryInterface. 2015-05-13 12:41:24 +00:00
qprint_p.h printsupport: Pass large type by const-ref 2015-07-20 10:20:15 +00:00
qprintdevice.cpp Clean up API of QPlatformPrintDevice (QPA). 2015-05-05 14:06:27 +00:00
qprintdevice_p.h Clean up API of QPlatformPrintDevice (QPA). 2015-05-05 14:06:27 +00:00
qprintengine.h Update copyright headers 2015-02-11 06:49:51 +00:00
qprintengine_pdf.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
qprintengine_pdf_p.h Update copyright headers 2015-02-11 06:49:51 +00:00
qprintengine_win.cpp Libraries: Fix single-character string literals. 2015-10-13 16:37:37 +00:00
qprintengine_win_p.h Merge remote-tracking branch 'origin/5.4' into 5.5 2015-03-31 10:03:31 +02:00
qprinter.cpp Use Q_UNLIKELY for every qFatal()/qCritical() 2015-11-29 22:59:17 +00:00
qprinter.h Update copyright headers 2015-02-11 06:49:51 +00:00
qprinter_p.h Update copyright headers 2015-02-11 06:49:51 +00:00
qprinterinfo.cpp Use QList::reserve(), reduces reallocations 2015-06-27 11:48:36 +00:00
qprinterinfo.h Add debug operator for QPrinterInfo. 2015-04-23 09:59:30 +00:00
qprinterinfo_p.h Update copyright headers 2015-02-11 06:49:51 +00:00
qtprintsupportglobal.h Update copyright headers 2015-02-11 06:49:51 +00:00