mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kimgio: webp plugin review
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
772e88b926
commit
5ca124cb4e
1 changed files with 4 additions and 2 deletions
|
@ -295,7 +295,9 @@ QStringList WebPPlugin::keys() const
|
|||
|
||||
QList<QByteArray> WebPPlugin::mimeTypes() const
|
||||
{
|
||||
return QList<QByteArray>() << "image/webp";
|
||||
static const QList<QByteArray> list = QList<QByteArray>()
|
||||
<< "image/webp";
|
||||
return list;
|
||||
}
|
||||
|
||||
QImageIOPlugin::Capabilities WebPPlugin::capabilities(QIODevice *device, const QByteArray &format) const
|
||||
|
@ -318,7 +320,7 @@ QImageIOPlugin::Capabilities WebPPlugin::capabilities(QIODevice *device, const Q
|
|||
|
||||
QImageIOHandler *WebPPlugin::create(QIODevice *device, const QByteArray &format) const
|
||||
{
|
||||
QImageIOHandler *handler = new WebPHandler;
|
||||
QImageIOHandler *handler = new WebPHandler();
|
||||
handler->setDevice(device);
|
||||
handler->setFormat(format);
|
||||
return handler;
|
||||
|
|
Loading…
Add table
Reference in a new issue