mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5101 clang-format: Adjusted penalties
Use lower absolute values to improve control of behavior
This commit is contained in:
@@ -106,8 +106,8 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
static bool RiaGetCurrentCase_init = RiaSocketCommandFactory::instance()->registerCreator<RiaGetCurrentCase>(
|
||||
RiaGetCurrentCase::commandName() );
|
||||
static bool RiaGetCurrentCase_init =
|
||||
RiaSocketCommandFactory::instance()->registerCreator<RiaGetCurrentCase>( RiaGetCurrentCase::commandName() );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
@@ -156,8 +156,8 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
static bool RiaGetSelectedCases_init = RiaSocketCommandFactory::instance()->registerCreator<RiaGetSelectedCases>(
|
||||
RiaGetSelectedCases::commandName() );
|
||||
static bool RiaGetSelectedCases_init =
|
||||
RiaSocketCommandFactory::instance()->registerCreator<RiaGetSelectedCases>( RiaGetSelectedCases::commandName() );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
@@ -168,10 +168,9 @@ public:
|
||||
static QString commandName() { return QString( "GetCaseGroups" ); }
|
||||
bool interpretCommand( RiaSocketServer* server, const QList<QByteArray>& args, QDataStream& socketStream ) override
|
||||
{
|
||||
RimProject* proj = RiaApplication::instance()->project();
|
||||
RimEclipseCaseCollection* analysisModels = ( proj && proj->activeOilField() )
|
||||
? proj->activeOilField()->analysisModels()
|
||||
: nullptr;
|
||||
RimProject* proj = RiaApplication::instance()->project();
|
||||
RimEclipseCaseCollection* analysisModels =
|
||||
( proj && proj->activeOilField() ) ? proj->activeOilField()->analysisModels() : nullptr;
|
||||
if ( analysisModels )
|
||||
{
|
||||
std::vector<QString> groupNames;
|
||||
@@ -212,8 +211,8 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
static bool RiaGetCaseGroups_init = RiaSocketCommandFactory::instance()->registerCreator<RiaGetCaseGroups>(
|
||||
RiaGetCaseGroups::commandName() );
|
||||
static bool RiaGetCaseGroups_init =
|
||||
RiaSocketCommandFactory::instance()->registerCreator<RiaGetCaseGroups>( RiaGetCaseGroups::commandName() );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
@@ -232,10 +231,9 @@ public:
|
||||
argCaseGroupId = args[1].toInt();
|
||||
}
|
||||
|
||||
RimProject* proj = RiaApplication::instance()->project();
|
||||
RimEclipseCaseCollection* analysisModels = ( proj && proj->activeOilField() )
|
||||
? proj->activeOilField()->analysisModels()
|
||||
: nullptr;
|
||||
RimProject* proj = RiaApplication::instance()->project();
|
||||
RimEclipseCaseCollection* analysisModels =
|
||||
( proj && proj->activeOilField() ) ? proj->activeOilField()->analysisModels() : nullptr;
|
||||
if ( analysisModels )
|
||||
{
|
||||
std::vector<RimCase*> cases;
|
||||
@@ -303,5 +301,5 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
static bool RiaGetCases_init = RiaSocketCommandFactory::instance()->registerCreator<RiaGetCases>(
|
||||
RiaGetCases::commandName() );
|
||||
static bool RiaGetCases_init =
|
||||
RiaSocketCommandFactory::instance()->registerCreator<RiaGetCases>( RiaGetCases::commandName() );
|
||||
|
||||
Reference in New Issue
Block a user