mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kimgio: reuse the static constant in webp handler
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
8eba8ffcde
commit
809ce8ae90
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue