mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
mark warning case in QBmpHandler::canRead() as unlikely
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
eff7ceafde
commit
15af803644
1 changed files with 2 additions and 2 deletions
|
@ -689,8 +689,8 @@ bool QBmpHandler::canRead() const
|
|||
|
||||
bool QBmpHandler::canRead(QIODevice *device)
|
||||
{
|
||||
if (!device) {
|
||||
qWarning("QBmpHandler::canRead() called with 0 pointer");
|
||||
if (Q_UNLIKELY(!device)) {
|
||||
qWarning("QBmpHandler::canRead() called with no device");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue