Commit c074e1b0 authored by Maik Qualmann's avatar Maik Qualmann

I think this extra code for Windows is no longer needed

parent 51509e80
......@@ -231,20 +231,7 @@ bool DImgJPEGLoader::load(const QString& filePath, DImgLoaderObserver* const obs
jpeg_create_decompress(&cinfo);
bool startedDecompress = false;
#ifdef Q_OS_WIN
QFile inFile(filePath);
QByteArray buffer;
if (inFile.open(QIODevice::ReadOnly))
{
buffer = inFile.readAll();
inFile.close();
}
JPEGUtils::jpeg_memory_src(&cinfo, (JOCTET*)buffer.data(), buffer.size());
#else
jpeg_stdio_src(&cinfo, file);
#endif
// Recording ICC profile marker (from iccjpeg.c)
if (m_loadFlags & LoadICCData)
......
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