Commit 1f72f0ee authored by Christian Kandeler's avatar Christian Kandeler
Browse files

QtSupport: Fix compilation with gcc.

Change-Id: I271072584882e256c7bfcbc39acdef0b42495bda
Reviewed-on: http://codereview.qt-project.org/6445

Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
parent e256a428
...@@ -164,7 +164,8 @@ public: ...@@ -164,7 +164,8 @@ public:
if (m_fetcher.data().isEmpty()) if (m_fetcher.data().isEmpty())
return QImage(); return QImage();
QBuffer imgBuffer(&m_fetcher.data()); QByteArray data = m_fetcher.data();
QBuffer imgBuffer(&data);
imgBuffer.open(QIODevice::ReadOnly); imgBuffer.open(QIODevice::ReadOnly);
QImageReader reader(&imgBuffer); QImageReader reader(&imgBuffer);
QImage img = reader.read(); QImage img = reader.read();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment