summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-10-22 16:36:46 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-11-05 16:47:11 (GMT)
commit17a784b808bb9934930aebccfb14e5fa8720ed9f (patch)
tree34b648d98aeffdf3b93179006ac7ed4168aa2167
parentfae02a12482805a6bfe6af116fb0b41bf014b572 (diff)
Simplify
-rw-r--r--src/lib/marble/ViewportParams.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/marble/ViewportParams.cpp b/src/lib/marble/ViewportParams.cpp
index 31583e5..017ba5d 100644
--- a/src/lib/marble/ViewportParams.cpp
+++ b/src/lib/marble/ViewportParams.cpp
@@ -94,7 +94,7 @@ ViewportParamsPrivate::ViewportParamsPrivate( Projection projection,
m_planetAxis(),
m_planetAxisMatrix(),
m_radius( radius ),
- m_angularResolution( 4 / fabs( (qreal)( m_radius ) ) ),
+ m_angularResolution(4.0 / fabs(m_radius)),
m_size( size ),
m_dirtyBox( true ),
m_viewLatLonAltBox()
@@ -228,7 +228,7 @@ void ViewportParams::setRadius(int newRadius)
d->m_dirtyBox = true;
d->m_radius = newRadius;
- d->m_angularResolution = 4 / fabs( (qreal)(d->m_radius) );
+ d->m_angularResolution = 4.0 / d->m_radius;
}
}