Minor code cleanup

This commit is contained in:
Jon Jenssen 2024-01-03 12:43:54 +01:00 committed by jonjenssen
parent 50a766591b
commit 62c7007654
2 changed files with 3 additions and 5 deletions

View File

@ -58,7 +58,7 @@ bool RifGeoMechReaderInterface::isTimeStepIncludedByFilter( int timeStepIndex )
for ( auto i : m_fileTimeStepIndices )
{
if ( i == static_cast<size_t>( timeStepIndex ) )
if ( i == timeStepIndex )
{
return true;
}

View File

@ -1,6 +1,6 @@
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2023- Equinor ASA
// Copyright (C) 2023 Equinor ASA
//
// ResInsight is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@ -16,8 +16,6 @@
//
/////////////////////////////////////////////////////////////////////////////////
#pragma once
#include "RifInpIncludeReader.h"
#include "RiaStdStringTools.h"
@ -89,7 +87,7 @@ void RifInpIncludeReader::readData( int columnIndex, const std::map<int, std::st
// is the requested column present?
auto columns = RiaStdStringTools::splitString( line, ',' );
if ( columnIndex >= columns.size() ) continue;
if ( columnIndex >= (int)columns.size() ) continue;
// split part/set/node/element in first column
auto partNode = RiaStdStringTools::splitString( columns[0], '.' );