Fixes by clang-tidy

This commit is contained in:
magnesj 2024-08-15 02:47:44 +00:00 committed by Magne Sjaastad
parent 478ac1868f
commit 3a54045c28
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ class SimpleDialog : public QDialog
public:
SimpleDialog( QWidget* parent = nullptr );
~SimpleDialog();
~SimpleDialog() override;
void createConnection();

View File

@ -317,7 +317,7 @@ void RifReaderOpmCommon::transferStaticNNCData( Opm::EclIO::EGrid& opmMainGrid,
connections.insert( connections.end(), conn.begin(), conn.end() );
}
if ( connections.size() > 0 )
if ( !connections.empty() )
{
// Transform to our own data structures
RigConnectionContainer nncConnections;
@ -805,7 +805,7 @@ void RifReaderOpmCommon::buildMetaData( RigEclipseCaseData* eclipseCaseData, caf
eclipseCaseData,
m_restartFile->numberOfReportSteps() );
if ( filteredTimeStepInfos.size() > 0 ) firstTimeStepInfo = filteredTimeStepInfos.front();
if ( !filteredTimeStepInfos.empty() ) firstTimeStepInfo = filteredTimeStepInfos.front();
}
if ( m_initFile != nullptr )