mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
kimgio: initialize capabilities variables
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
899f94c78d
commit
1a0b5387c3
3 changed files with 3 additions and 3 deletions
|
@ -459,7 +459,7 @@ QImageIOPlugin::Capabilities ICOPlugin::capabilities(QIODevice *device, const QB
|
|||
if (!device || !device->isOpen()) {
|
||||
return 0;
|
||||
}
|
||||
QImageIOPlugin::Capabilities cap;
|
||||
QImageIOPlugin::Capabilities cap = 0;
|
||||
if (device->isReadable() && ICOHandler::canRead(device)) {
|
||||
cap |= QImageIOPlugin::CanRead;
|
||||
}
|
||||
|
|
|
@ -253,7 +253,7 @@ QImageIOPlugin::Capabilities JPGPlugin::capabilities(QIODevice *device, const QB
|
|||
if (!device || !device->isOpen()) {
|
||||
return 0;
|
||||
}
|
||||
QImageIOPlugin::Capabilities cap;
|
||||
QImageIOPlugin::Capabilities cap = 0;
|
||||
if (device->isReadable() && JPGHandler::canRead(device)) {
|
||||
cap |= QImageIOPlugin::CanRead;
|
||||
}
|
||||
|
|
|
@ -370,7 +370,7 @@ QImageIOPlugin::Capabilities WebPPlugin::capabilities(QIODevice *device, const Q
|
|||
if (!device || !device->isOpen()) {
|
||||
return 0;
|
||||
}
|
||||
QImageIOPlugin::Capabilities cap;
|
||||
QImageIOPlugin::Capabilities cap = 0;
|
||||
if (device->isReadable() && WebPHandler::canRead(device)) {
|
||||
cap |= QImageIOPlugin::CanRead;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue