mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5101 clang-format: Allow short functions on a single line
Use AllowShortFunctionsOnASingleLine: InlineOnly
This commit is contained in:
@@ -132,7 +132,9 @@ RicExportEclipseSectorModelUi::RicExportEclipseSectorModelUi()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RicExportEclipseSectorModelUi::~RicExportEclipseSectorModelUi() {}
|
||||
RicExportEclipseSectorModelUi::~RicExportEclipseSectorModelUi()
|
||||
{
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
||||
@@ -101,10 +101,7 @@ public:
|
||||
double startMd;
|
||||
double endMd;
|
||||
|
||||
bool operator<( const CellInfo& other ) const
|
||||
{
|
||||
return startMd < other.startMd;
|
||||
}
|
||||
bool operator<( const CellInfo& other ) const { return startMd < other.startMd; }
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -200,14 +197,8 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
caf::VecIjk min() const
|
||||
{
|
||||
return caf::VecIjk( m_min[I], m_min[J], m_min[K] );
|
||||
}
|
||||
caf::VecIjk max() const
|
||||
{
|
||||
return caf::VecIjk( m_max[I], m_max[J], m_max[K] );
|
||||
}
|
||||
caf::VecIjk min() const { return caf::VecIjk( m_min[I], m_min[J], m_min[K] ); }
|
||||
caf::VecIjk max() const { return caf::VecIjk( m_max[I], m_max[J], m_max[K] ); }
|
||||
|
||||
private:
|
||||
std::array<size_t, 3> m_min;
|
||||
|
||||
@@ -71,10 +71,7 @@ public:
|
||||
sizes.k() / ( mainGridEndCell.k() - mainGridStartCell.k() + 1 ) );
|
||||
}
|
||||
|
||||
size_t cellCount() const
|
||||
{
|
||||
return sizes.i() * sizes.j() * sizes.k();
|
||||
}
|
||||
size_t cellCount() const { return sizes.i() * sizes.j() * sizes.k(); }
|
||||
|
||||
int id;
|
||||
QString name;
|
||||
@@ -141,10 +138,7 @@ public:
|
||||
return type == other.type && name == other.name && wellPathName == other.wellPathName;
|
||||
}
|
||||
|
||||
bool operator!=( const CompletionInfo& other ) const
|
||||
{
|
||||
return !operator==( other );
|
||||
}
|
||||
bool operator!=( const CompletionInfo& other ) const { return !operator==( other ); }
|
||||
};
|
||||
|
||||
//==================================================================================================
|
||||
@@ -155,10 +149,7 @@ class RicExportLgrFeature : public caf::CmdFeature
|
||||
CAF_CMD_HEADER_INIT;
|
||||
|
||||
using Range = std::pair<size_t, size_t>;
|
||||
static Range initRange()
|
||||
{
|
||||
return std::make_pair( std::numeric_limits<size_t>::max(), 0 );
|
||||
}
|
||||
static Range initRange() { return std::make_pair( std::numeric_limits<size_t>::max(), 0 ); }
|
||||
|
||||
static RicExportLgrUi* openDialog( const QString& dialogTitle,
|
||||
RimEclipseCase* defaultCase = nullptr,
|
||||
|
||||
@@ -59,7 +59,9 @@ RicSaveEclipseInputVisibleCellsUi::RicSaveEclipseInputVisibleCellsUi( void )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RicSaveEclipseInputVisibleCellsUi::~RicSaveEclipseInputVisibleCellsUi() {}
|
||||
RicSaveEclipseInputVisibleCellsUi::~RicSaveEclipseInputVisibleCellsUi()
|
||||
{
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
||||
@@ -50,7 +50,9 @@ RicSaveEclipseResultAsInputPropertyExec::RicSaveEclipseResultAsInputPropertyExec
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RicSaveEclipseResultAsInputPropertyExec::~RicSaveEclipseResultAsInputPropertyExec() {}
|
||||
RicSaveEclipseResultAsInputPropertyExec::~RicSaveEclipseResultAsInputPropertyExec()
|
||||
{
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user