mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4683 clang-format on all files in ApplicationCode
This commit is contained in:
@@ -2,17 +2,17 @@
|
||||
//
|
||||
// Copyright (C) Statoil ASA
|
||||
// Copyright (C) Ceetron Solutions AS
|
||||
//
|
||||
//
|
||||
// ResInsight is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
//
|
||||
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
// FITNESS FOR A PARTICULAR PURPOSE.
|
||||
//
|
||||
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
||||
//
|
||||
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
||||
// for more details.
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "RifReaderSettings.h"
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RifReaderInterface::isFaultImportEnabled()
|
||||
{
|
||||
@@ -33,7 +33,7 @@ bool RifReaderInterface::isFaultImportEnabled()
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RifReaderInterface::isImportOfCompleteMswDataEnabled()
|
||||
{
|
||||
@@ -41,7 +41,7 @@ bool RifReaderInterface::isImportOfCompleteMswDataEnabled()
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RifReaderInterface::isNNCsEnabled()
|
||||
{
|
||||
@@ -49,7 +49,7 @@ bool RifReaderInterface::isNNCsEnabled()
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const QString RifReaderInterface::faultIncludeFileAbsolutePathPrefix()
|
||||
{
|
||||
@@ -57,15 +57,15 @@ const QString RifReaderInterface::faultIncludeFileAbsolutePathPrefix()
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifReaderInterface::setTimeStepFilter(const std::vector<size_t>& fileTimeStepIndices)
|
||||
void RifReaderInterface::setTimeStepFilter( const std::vector<size_t>& fileTimeStepIndices )
|
||||
{
|
||||
m_fileTimeStepIndices = fileTimeStepIndices;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::set<RiaDefines::PhaseType> RifReaderInterface::availablePhases() const
|
||||
{
|
||||
@@ -73,15 +73,15 @@ std::set<RiaDefines::PhaseType> RifReaderInterface::availablePhases() const
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RifReaderInterface::isTimeStepIncludedByFilter(size_t timeStepIndex) const
|
||||
bool RifReaderInterface::isTimeStepIncludedByFilter( size_t timeStepIndex ) const
|
||||
{
|
||||
if (m_fileTimeStepIndices.empty()) return true;
|
||||
if ( m_fileTimeStepIndices.empty() ) return true;
|
||||
|
||||
for (auto i : m_fileTimeStepIndices)
|
||||
for ( auto i : m_fileTimeStepIndices )
|
||||
{
|
||||
if (i == timeStepIndex)
|
||||
if ( i == timeStepIndex )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -91,11 +91,11 @@ bool RifReaderInterface::isTimeStepIncludedByFilter(size_t timeStepIndex) const
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
size_t RifReaderInterface::timeStepIndexOnFile(size_t timeStepIndex) const
|
||||
size_t RifReaderInterface::timeStepIndexOnFile( size_t timeStepIndex ) const
|
||||
{
|
||||
if (timeStepIndex < m_fileTimeStepIndices.size())
|
||||
if ( timeStepIndex < m_fileTimeStepIndices.size() )
|
||||
{
|
||||
return m_fileTimeStepIndices[timeStepIndex];
|
||||
}
|
||||
@@ -104,14 +104,13 @@ size_t RifReaderInterface::timeStepIndexOnFile(size_t timeStepIndex) const
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const RifReaderSettings* RifReaderInterface::readerSettings() const
|
||||
{
|
||||
RiaPreferences* prefs = RiaApplication::instance()->preferences();
|
||||
|
||||
CVF_ASSERT(prefs->readerSettings());
|
||||
CVF_ASSERT( prefs->readerSettings() );
|
||||
|
||||
return prefs->readerSettings();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user