kimgio: reuse the static constant in webp handler

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-12-18 20:58:48 +02:00
parent 8eba8ffcde
commit 809ce8ae90

View file

@ -41,7 +41,7 @@ WebPHandler::WebPHandler()
bool WebPHandler::canRead() const
{
if (canRead(device())) {
setFormat("webp");
setFormat(s_webppluginformat);
return true;
}
return false;
@ -169,7 +169,7 @@ bool WebPHandler::write(const QImage &image)
QByteArray WebPHandler::name() const
{
return "webp";
return s_webppluginformat;
}
bool WebPHandler::supportsOption(QImageIOHandler::ImageOption option) const