mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixes by clang-format
This commit is contained in:
committed by
Magne Sjaastad
parent
64a719b1f4
commit
6b5f4dddc9
@@ -91,11 +91,11 @@
|
||||
#include "RimWellLogFile.h"
|
||||
#include "RimWellLogPlot.h"
|
||||
#include "RimWellLogPlotCollection.h"
|
||||
#include "RimWellPath.h"
|
||||
#include "RimWellPathCollection.h"
|
||||
#include "RimWellPathFracture.h"
|
||||
#include "RimWellPltPlot.h"
|
||||
#include "RimWellRftPlot.h"
|
||||
#include "RimWellPath.h"
|
||||
|
||||
#include "Riu3DMainWindowTools.h"
|
||||
#include "RiuViewer.h"
|
||||
@@ -1480,9 +1480,9 @@ cvf::Font* RiaApplication::defaultSceneFont()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::Font* RiaApplication::sceneFont( int fontSize )
|
||||
{
|
||||
if (fontSize != caf::FontTools::absolutePointSize(m_preferences->defaultSceneFontSize()))
|
||||
if ( fontSize != caf::FontTools::absolutePointSize( m_preferences->defaultSceneFontSize() ) )
|
||||
{
|
||||
auto font = RiaFontCache::getFont(fontSize);
|
||||
auto font = RiaFontCache::getFont( fontSize );
|
||||
return font.p();
|
||||
}
|
||||
return defaultSceneFont();
|
||||
|
||||
@@ -188,7 +188,7 @@ public:
|
||||
static std::vector<QString> readFileListFromTextFile( QString listFileName );
|
||||
|
||||
cvf::Font* defaultSceneFont();
|
||||
cvf::Font* sceneFont(int fontSize);
|
||||
cvf::Font* sceneFont( int fontSize );
|
||||
cvf::Font* defaultAnnotationFont();
|
||||
cvf::Font* defaultWellLabelFont();
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public:
|
||||
using FontSize = caf::FontTools::FontSize;
|
||||
using FontSizeEnum = caf::FontTools::FontSizeEnum;
|
||||
|
||||
static cvf::ref<caf::FixedAtlasFont> getFont(FontSize fontSize);
|
||||
static cvf::ref<caf::FixedAtlasFont> getFont( FontSize fontSize );
|
||||
static cvf::ref<caf::FixedAtlasFont> getFont( int pointSize );
|
||||
static FontSize legacyEnumToPointSize( int enumValue );
|
||||
static void clear();
|
||||
|
||||
@@ -43,7 +43,7 @@ public:
|
||||
|
||||
static std::vector<std::string> splitStringBySpace( const std::string& s );
|
||||
|
||||
static int computeEditDistance( const std::string& x, const std::string& y);
|
||||
static int computeEditDistance( const std::string& x, const std::string& y );
|
||||
|
||||
private:
|
||||
template <class Container>
|
||||
|
||||
@@ -33,7 +33,7 @@ RiaWellPlanCalculator::RiaWellPlanCalculator( const cvf::Vec3d& sta
|
||||
{
|
||||
if ( m_lineArcEndPoints.size() < 2 ) return;
|
||||
|
||||
WellPlanSegment segment = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
|
||||
WellPlanSegment segment = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
|
||||
|
||||
RiaOffshoreSphericalCoords startAziIncRad( m_startTangent );
|
||||
segment.inc = cvf::Math::toDegrees( startAziIncRad.inc() );
|
||||
@@ -80,7 +80,7 @@ void RiaWellPlanCalculator::addSegment( cvf::Vec3d t1, cvf::Vec3d p1, cvf::Vec3d
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiaWellPlanCalculator::addLineSegment( cvf::Vec3d p1, cvf::Vec3d p2, cvf::Vec3d* endTangent )
|
||||
{
|
||||
WellPlanSegment segment = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
|
||||
WellPlanSegment segment = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
|
||||
|
||||
cvf::Vec3d p1p2 = p2 - p1;
|
||||
double length = p1p2.length();
|
||||
@@ -110,7 +110,7 @@ void RiaWellPlanCalculator::addLineSegment( cvf::Vec3d p1, cvf::Vec3d p2, cvf::V
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiaWellPlanCalculator::addArcSegment( cvf::Vec3d t1, cvf::Vec3d p1, cvf::Vec3d p2, cvf::Vec3d* endTangent )
|
||||
{
|
||||
WellPlanSegment segment = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
|
||||
WellPlanSegment segment = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
|
||||
|
||||
RiaArcCurveCalculator arcCalc( p1, t1, p2 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user