mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-19 01:24:53 -05:00
Make Linux happy
Use correct type Remove unused variable Fix placement of local variable
This commit is contained in:
@@ -80,7 +80,8 @@ RimFormationNames* RicImportFormationNamesFeature::importFormationFiles( const Q
|
||||
|
||||
if ( anyValidColor )
|
||||
{
|
||||
RicImportFormationNamesFeature::addCustomColorLegend( QFileInfo( fileNames[i] ).baseName(), formationNames[i] );
|
||||
QString baseName = QFileInfo( fileNames[i] ).baseName();
|
||||
RicImportFormationNamesFeature::addCustomColorLegend( baseName, formationNames[i] );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ bool RifSurfaceExporter::writePetrellPtlFile( const QString&
|
||||
out << "#History: No history \n";
|
||||
out << "#Z_units: meters \n";
|
||||
|
||||
for ( int i = 0; i < vertices.size(); i++ )
|
||||
for ( size_t i = 0; i < vertices.size(); i++ )
|
||||
{
|
||||
out << vertices[i].x() << " ";
|
||||
out << vertices[i].y() << " ";
|
||||
|
||||
@@ -64,7 +64,6 @@ std::vector<RimFormationNames*> RimFormationNamesCollection::importFiles( const
|
||||
{
|
||||
QStringList newFileNames;
|
||||
std::vector<RimFormationNames*> formNamesObjsToReload;
|
||||
size_t formationListBeforeImportCount = m_formationNamesList.size();
|
||||
|
||||
for ( const QString& newFileName : fileNames )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user