From 506af84400093a2f0c869ce7f2cd2a4685cea165 Mon Sep 17 00:00:00 2001 From: Nikolaj Schlej Date: Fri, 6 Feb 2015 17:46:26 +0100 Subject: [PATCH] GCC compilation issues correction MS-specific syntax strikes again --- ffsengine.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ffsengine.cpp b/ffsengine.cpp index feaf899..a2c075b 100644 --- a/ffsengine.cpp +++ b/ffsengine.cpp @@ -846,7 +846,7 @@ UINT8 FfsEngine::parseVolume(const QByteArray & volume, QModelIndex & index, co // Construct parsing data structure QByteArray parsingData(sizeof(PARSING_DATA), 0); PARSING_DATA* pdata = (PARSING_DATA*)parsingData.data(); - pdata->Type = ParsingDataTypes::VolumeParsingData; + pdata->Type = VolumeParsingData; pdata->Data.Volume.HasZeroVectorCRC = volumeHasZVCRC; // Add text @@ -952,7 +952,7 @@ UINT8 FfsEngine::parseVolume(const QByteArray & volume, QModelIndex & index, co // Construct parsing data structure QByteArray parsingData(sizeof(PARSING_DATA), 0); PARSING_DATA* pdata = (PARSING_DATA*)parsingData.data(); - pdata->Type = ParsingDataTypes::FileParsingData; + pdata->Type = FileParsingData; pdata->Data.File.Offset = fileOffset; model->setParsingData(fileIndex, parsingData); @@ -3073,7 +3073,7 @@ UINT8 FfsEngine::reconstructVolume(const QModelIndex & index, QByteArray & recon // Recalculate CRC32 in ZeroVector, if needed const PARSING_DATA* pdata = (const PARSING_DATA*)model->parsingData(index).constData(); - if (pdata->Type == ParsingDataTypes::VolumeParsingData && pdata->Data.Volume.HasZeroVectorCRC) { + if (pdata->Type == VolumeParsingData && pdata->Data.Volume.HasZeroVectorCRC) { // Get current CRC32 value from volume header const UINT32 current = *(const UINT32*)(reconstructed.constData() + 8); // Calculate new value