System : Introduce compiler warning C4457 with fixes

This commit is contained in:
Magne Sjaastad
2018-09-24 21:20:35 +02:00
parent 5a9a5ba803
commit 4009d4d63b
7 changed files with 30 additions and 31 deletions

View File

@@ -541,12 +541,12 @@ bool RifEclipseUserDataParserTools::hasCompleteDataForAllHeaderColumns(const std
bool headerDataComplete = true;
{
auto lines = RifEclipseUserDataParserTools::findValidHeaderLines(streamData);
if (lines.size() > 0)
auto headerLines = RifEclipseUserDataParserTools::findValidHeaderLines(streamData);
if (headerLines.size() > 0)
{
size_t wordsFirstLine = lines[0].size();
size_t wordsFirstLine = headerLines[0].size();
for (auto line : lines)
for (auto line : headerLines)
{
if (wordsFirstLine != line.size())
{