mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 06:38:13 -05:00
Janitor fixes detected by clang-19
This commit is contained in:
1 parent
57017a166c
commit
724d9a1864
3 files changed
+6
-6
No files matched your search
@@ -52,7 +52,7 @@ bool RicApplyUserDefinedCameraFeature::isCommandEnabled() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicApplyUserDefinedCameraFeature::onActionTriggered( bool isChecked )
|
||||
{
|
||||
if ( auto camera = RicStoreUserDefinedCameraFeature::activeCamera() )
|
||||
if ( RicStoreUserDefinedCameraFeature::activeCamera() )
|
||||
{
|
||||
cvf::Vec3d eye = cvf::Vec3d::UNDEFINED;
|
||||
cvf::Vec3d vrp = cvf::Vec3d::UNDEFINED;
|
||||
|
||||
@@ -63,15 +63,14 @@ void RicCreateMultipleWellPathLaterals::onActionTriggered( bool isChecked )
|
||||
double startMD = 0.0;
|
||||
double endMD = 0.0;
|
||||
|
||||
auto sourceLateral = m_ui->sourceLateral();
|
||||
if ( sourceLateral )
|
||||
if ( auto sourceLateral = m_ui->sourceLateral() )
|
||||
{
|
||||
if ( auto tieIn = sourceLateral->wellPathTieIn() )
|
||||
{
|
||||
startMD = sourceLateral->wellPathTieIn()->tieInMeasuredDepth() + 50.0;
|
||||
startMD = tieIn->tieInMeasuredDepth() + 50.0;
|
||||
endMD = startMD + 50.0;
|
||||
|
||||
if ( auto parentWell = sourceLateral->wellPathTieIn()->parentWell() )
|
||||
if ( auto parentWell = tieIn->parentWell() )
|
||||
{
|
||||
if ( !parentWell->wellPathGeometry()->measuredDepths().empty() )
|
||||
{
|
||||
|
||||
@@ -496,7 +496,8 @@ void RimSummaryCaseMainCollection::loadFileSummaryCaseData( std::vector<RimFileS
|
||||
QCoreApplication::processEvents( QEventLoop::ExcludeUserInputEvents );
|
||||
|
||||
// The HDF5 reader requires a special configuration to be thread safe. Disable threading for HDF reader.
|
||||
bool canUseMultipleTreads = ( prefs->summaryDataReader() != RiaPreferencesSummary::SummaryReaderMode::HDF5_OPM_COMMON );
|
||||
[[maybe_unused]] bool canUseMultipleTreads =
|
||||
( prefs->summaryDataReader() != RiaPreferencesSummary::SummaryReaderMode::HDF5_OPM_COMMON );
|
||||
|
||||
#pragma omp parallel for schedule( dynamic ) if ( canUseMultipleTreads )
|
||||
for ( int cIdx = 0; cIdx < static_cast<int>( fileSummaryCases.size() ); ++cIdx )
|
||||
|
||||
Reference in new issue
Block a user