mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 10:22:15 -05:00
CppCheck : Remove unused variables
This commit is contained in:
1 parent
f9a402b0f9
commit
53c39cdc73
19 files changed
+24
-81
No files matched your search
@@ -381,8 +381,6 @@ std::vector<std::string> RifHdf5Reader::getSubGroupNames( H5::H5File file, std::
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<std::string> RifHdf5Reader::getResultNames( H5::H5File file, std::string baseGroupName ) const
|
||||
{
|
||||
H5::Group baseGroup = file.openGroup( baseGroupName.c_str() );
|
||||
|
||||
std::vector<std::string> subGroupNames = getSubGroupNames( file, baseGroupName );
|
||||
|
||||
std::vector<std::string> resultNames;
|
||||
|
||||
@@ -183,8 +183,7 @@ void RifStimPlanXmlReader::readStimplanGridAndTimesteps( QXmlStreamReader&
|
||||
MirrorMode mirrorMode,
|
||||
RiaEclipseUnitTools::UnitSystem requiredUnit )
|
||||
{
|
||||
size_t startNegValuesYs = 0;
|
||||
QString gridunit = "unknown";
|
||||
size_t startNegValuesYs = 0;
|
||||
|
||||
xmlStream.readNext();
|
||||
|
||||
@@ -209,7 +208,7 @@ void RifStimPlanXmlReader::readStimplanGridAndTimesteps( QXmlStreamReader&
|
||||
// Support for one grid per file
|
||||
if ( gridSectionCount < 1 )
|
||||
{
|
||||
gridunit = getAttributeValueString( xmlStream, "uom" );
|
||||
QString gridunit = getAttributeValueString( xmlStream, "uom" );
|
||||
|
||||
if ( gridunit == "m" )
|
||||
stimPlanFileData->m_unitSet = RiaEclipseUnitTools::UnitSystem::UNITS_METRIC;
|
||||
|
||||
@@ -35,12 +35,12 @@ bool RifSurfaceExporter::writeGocadTSurfFile( const QString& fil
|
||||
|
||||
QTextStream out( &exportFile );
|
||||
|
||||
QString headerForExport = headerText;
|
||||
if ( headerText.isEmpty() ) headerForExport = "surface";
|
||||
QString headerForExport = headerForExport = "surface";
|
||||
if ( !headerText.isEmpty() ) headerForExport = headerText;
|
||||
|
||||
out << "GOCAD TSurf 1 \n";
|
||||
out << "HEADER { \n";
|
||||
out << "name:" + headerText + " \n";
|
||||
out << "name:" + headerForExport + " \n";
|
||||
out << "} \n";
|
||||
out << "GOCAD_ORIGINAL_COORDINATE_SYSTEM \n";
|
||||
out << "NAME Default \n";
|
||||
|
||||
Reference in new issue
Block a user