mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
clang-format: Set column width to 140
* Set column width to 140 * Use c++20 * Remove redundant virtual
This commit is contained in:
@@ -22,12 +22,10 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::ref<RigWellPathFormations> RifWellPathFormationsImporter::readWellPathFormations( const QString& formationFilePath,
|
||||
const QString& wellName )
|
||||
cvf::ref<RigWellPathFormations> RifWellPathFormationsImporter::readWellPathFormations( const QString& formationFilePath, const QString& wellName )
|
||||
{
|
||||
readAllWellPathFormations( formationFilePath );
|
||||
if ( m_fileNameToWellPathFormationMap[formationFilePath].find( wellName ) !=
|
||||
m_fileNameToWellPathFormationMap[formationFilePath].end() )
|
||||
if ( m_fileNameToWellPathFormationMap[formationFilePath].find( wellName ) != m_fileNameToWellPathFormationMap[formationFilePath].end() )
|
||||
{
|
||||
return m_fileNameToWellPathFormationMap[formationFilePath][wellName];
|
||||
}
|
||||
@@ -40,8 +38,8 @@ cvf::ref<RigWellPathFormations> RifWellPathFormationsImporter::readWellPathForma
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::ref<RigWellPathFormations>
|
||||
RifWellPathFormationsImporter::reloadWellPathFormations( const QString& formationFilePath, const QString& wellName )
|
||||
cvf::ref<RigWellPathFormations> RifWellPathFormationsImporter::reloadWellPathFormations( const QString& formationFilePath,
|
||||
const QString& wellName )
|
||||
{
|
||||
m_fileNameToWellPathFormationMap.erase( formationFilePath );
|
||||
|
||||
@@ -51,8 +49,7 @@ cvf::ref<RigWellPathFormations>
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::map<QString, cvf::ref<RigWellPathFormations>>
|
||||
RifWellPathFormationsImporter::readWellPathFormationsFromPath( const QString& filePath )
|
||||
std::map<QString, cvf::ref<RigWellPathFormations>> RifWellPathFormationsImporter::readWellPathFormationsFromPath( const QString& filePath )
|
||||
{
|
||||
// If we have the file in the map, assume it is already read.
|
||||
if ( m_fileNameToWellPathFormationMap.find( filePath ) != m_fileNameToWellPathFormationMap.end() )
|
||||
|
||||
Reference in New Issue
Block a user