kimgio: mark warning case in raw plugin as unlikely

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-10-26 09:30:46 +03:00
parent 23fd8af700
commit 28633b995e

View file

@ -217,7 +217,7 @@ bool RAWHandler::read(QImage *image)
return false;
}
if (rawimg->colors != 3) {
if (Q_UNLIKELY(rawimg->colors != 3)) {
kWarning() << "Color components count not supported" << rawimg->colors;
raw.dcraw_clear_mem(rawimg);
raw.recycle();