summaryrefslogtreecommitdiffstats
path: root/src/gui/image
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-08-17 11:48:51 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-08-17 11:49:14 (GMT)
commit3d50220423b96a84f1ca4c0f5ef9246345aad359 (patch)
tree82d66d5da9ae7820abd04577fe6a93a983a5277b /src/gui/image
parent025a7395153c3708e2964cfd93957532b19ae04f (diff)
downloadQt-3d50220423b96a84f1ca4c0f5ef9246345aad359.zip
Qt-3d50220423b96a84f1ca4c0f5ef9246345aad359.tar.gz
Qt-3d50220423b96a84f1ca4c0f5ef9246345aad359.tar.bz2
Fix coverity warnings
Diffstat (limited to 'src/gui/image')
-rw-r--r--src/gui/image/qmovie.cpp2
-rw-r--r--src/gui/image/qppmhandler.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/image/qmovie.cpp b/src/gui/image/qmovie.cpp
index 2265e7b..c341e5e 100644
--- a/src/gui/image/qmovie.cpp
+++ b/src/gui/image/qmovie.cpp
@@ -356,7 +356,7 @@ QFrameInfo QMoviePrivate::infoForFrame(int frameNumber)
reader = new QImageReader(device, format);
else
reader = new QImageReader(absoluteFilePath, format);
- reader->canRead(); // Provoke a device->open() call
+ (void)reader->canRead(); // Provoke a device->open() call
reader->device()->seek(initialDevicePos);
reader->setBackgroundColor(bgColor);
reader->setScaledSize(scaledSize);
diff --git a/src/gui/image/qppmhandler.cpp b/src/gui/image/qppmhandler.cpp
index 77ccb48..ed8f4c1 100644
--- a/src/gui/image/qppmhandler.cpp
+++ b/src/gui/image/qppmhandler.cpp
@@ -80,7 +80,7 @@ static int read_pbm_int(QIODevice *d)
else if (isspace((uchar) c))
continue;
else if (c == '#')
- d->readLine(buf, buflen);
+ (void)d->readLine(buf, buflen);
else
break;
}