[frameworks/kimageformats] src/imageformats: QOI: check format only in lowercase

Mirco Miranda <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 66d7d7c1547bdf671b265fa5601d1b31a115e089 by Mirco Miranda.
Committed on 27/07/2026 at 08:05.
Pushed by mircomir into branch 'master'.

QOI: check format only in lowercase

M  +1    -1    src/imageformats/qoi.cpp

https://invent.kde.org/frameworks/kimageformats/-/commit/66d7d7c1547bdf671b265fa5601d1b31a115e089

diff --git a/src/imageformats/qoi.cpp b/src/imageformats/qoi.cpp
index 1907004e..a47bf29a 100644
--- a/src/imageformats/qoi.cpp
+++ b/src/imageformats/qoi.cpp
@@ -471,7 +471,7 @@ QVariant QOIHandler::option(ImageOption option) const
 
 QImageIOPlugin::Capabilities QOIPlugin::capabilities(QIODevice *device, const QByteArray &format) const
 {
-    if (format == "qoi" || format == "QOI") {
+    if (format == "qoi") {
         return Capabilities(CanRead | CanWrite);
     }
     if (!format.isEmpty()) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.