mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 18:32:10 -05:00
Update clang-format.yml (#10068)
* Update to clang-format-15 Removed two custom .clang-format files in subfolders of AppFwk * Fixes by clang-format
This commit is contained in:
1 parent
310b54ef93
commit
952e766c2f
230 files changed
+2010
-2019
No files matched your search
@@ -407,13 +407,16 @@ void RimSummaryTable::onLoadDataAndUpdate()
|
||||
}
|
||||
|
||||
// Sort vector data on date (vectors with no values above threshold placed last):
|
||||
std::sort( vectorDataCollection.begin(), vectorDataCollection.end(), []( const VectorData& v1, const VectorData& v2 ) {
|
||||
if ( !v1.hasValueAboveThreshold ) return false;
|
||||
if ( v1.hasValueAboveThreshold && !v2.hasValueAboveThreshold ) return true;
|
||||
if ( v1.firstTimeStep < v2.firstTimeStep ) return true;
|
||||
if ( v1.firstTimeStep == v2.firstTimeStep && v1.lastTimeStep < v2.lastTimeStep ) return true;
|
||||
return false;
|
||||
} );
|
||||
std::sort( vectorDataCollection.begin(),
|
||||
vectorDataCollection.end(),
|
||||
[]( const VectorData& v1, const VectorData& v2 )
|
||||
{
|
||||
if ( !v1.hasValueAboveThreshold ) return false;
|
||||
if ( v1.hasValueAboveThreshold && !v2.hasValueAboveThreshold ) return true;
|
||||
if ( v1.firstTimeStep < v2.firstTimeStep ) return true;
|
||||
if ( v1.firstTimeStep == v2.firstTimeStep && v1.lastTimeStep < v2.lastTimeStep ) return true;
|
||||
return false;
|
||||
} );
|
||||
|
||||
// Convert to strings
|
||||
std::vector<QString> timeStepStrings;
|
||||
|
||||
Reference in new issue
Block a user