aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/util/qquickpixmapcache.cpp
diff options
context:
space:
mode:
authorFrank Meerkoetter <frank.meerkoetter@basyskom.com>2015-12-10 21:02:22 +0100
committerFrank Meerkoetter <frank.meerkoetter@basyskom.com>2015-12-15 05:11:43 +0000
commit7cbde9ef129eef6e306f53cb35516c376f07762e (patch)
treeb8f0f376109d1b3283972150b7b96fbcaa5cf3a9 /src/quick/util/qquickpixmapcache.cpp
parente77bf29218c9421d0d24c4a8954ebcea69ea81ed (diff)
Do not just fall through on the error path
Fixes coverity CID95858, CID95857, CID95856. Change-Id: I4ff1ce60059484473d1be0880acc874ace079806 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/quick/util/qquickpixmapcache.cpp')
-rw-r--r--src/quick/util/qquickpixmapcache.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quick/util/qquickpixmapcache.cpp b/src/quick/util/qquickpixmapcache.cpp
index ed6da8ac91..bbb15cb872 100644
--- a/src/quick/util/qquickpixmapcache.cpp
+++ b/src/quick/util/qquickpixmapcache.cpp
@@ -1140,6 +1140,7 @@ static QQuickPixmapData* createPixmapDataSync(QQuickPixmap *declarativePixmap, Q
*ok = true;
return new QQuickPixmapData(declarativePixmap, url, texture, readSize, requestSize, autoTransform, UsePluginDefault);
}
+ break;
}
case QQuickImageProvider::Image:
@@ -1149,6 +1150,7 @@ static QQuickPixmapData* createPixmapDataSync(QQuickPixmap *declarativePixmap, Q
*ok = true;
return new QQuickPixmapData(declarativePixmap, url, QQuickTextureFactory::textureFactoryForImage(image), readSize, requestSize, autoTransform, UsePluginDefault);
}
+ break;
}
case QQuickImageProvider::Pixmap:
{
@@ -1157,6 +1159,7 @@ static QQuickPixmapData* createPixmapDataSync(QQuickPixmap *declarativePixmap, Q
*ok = true;
return new QQuickPixmapData(declarativePixmap, url, QQuickTextureFactory::textureFactoryForImage(pixmap.toImage()), readSize, requestSize, autoTransform, UsePluginDefault);
}
+ break;
}
case QQuickImageProvider::ImageResponse:
{