Skip to content

Commit

Permalink
Minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjenssen committed Jan 3, 2024
1 parent 50a7665 commit 58a2bb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -16,8 +16,6 @@
//
/////////////////////////////////////////////////////////////////////////////////

#pragma once

#include "RifInpIncludeReader.h"

#include "RiaStdStringTools.h"
Expand Down Expand Up @@ -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], '.' );
Expand Down

0 comments on commit 58a2bb7

Please sign in to comment.