mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kimgio: mark warning case in raw plugin as unlikely
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
23fd8af700
commit
28633b995e
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue