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:
@@ -18,14 +18,14 @@
|
||||
|
||||
#include "RifFileParseTools.h"
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QStringList RifFileParseTools::splitLineAndTrim(const QString& line, const QString& separator, bool skipEmptyParts)
|
||||
QStringList RifFileParseTools::splitLineAndTrim( const QString& line, const QString& separator, bool skipEmptyParts )
|
||||
{
|
||||
QStringList cols = line.trimmed().split(separator, skipEmptyParts ? QString::SkipEmptyParts : QString::KeepEmptyParts);
|
||||
for (QString& col : cols)
|
||||
QStringList cols = line.trimmed().split( separator,
|
||||
skipEmptyParts ? QString::SkipEmptyParts : QString::KeepEmptyParts );
|
||||
for ( QString& col : cols )
|
||||
{
|
||||
col = col.trimmed();
|
||||
}
|
||||
@@ -33,12 +33,12 @@ QStringList RifFileParseTools::splitLineAndTrim(const QString& line, const QStri
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QStringList RifFileParseTools::splitLineAndTrim(const QString& line, const QRegExp& regexp, bool skipEmptyParts)
|
||||
QStringList RifFileParseTools::splitLineAndTrim( const QString& line, const QRegExp& regexp, bool skipEmptyParts )
|
||||
{
|
||||
QStringList cols = line.trimmed().split(regexp, skipEmptyParts ? QString::SkipEmptyParts : QString::KeepEmptyParts);
|
||||
for (QString& col : cols)
|
||||
QStringList cols = line.trimmed().split( regexp, skipEmptyParts ? QString::SkipEmptyParts : QString::KeepEmptyParts );
|
||||
for ( QString& col : cols )
|
||||
{
|
||||
col = col.trimmed();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user