summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-10-22 16:37:05 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-11-05 16:47:11 (GMT)
commitadc69b23d9017c0bf669f7de61c3f0563219e5dd (patch)
tree296b74222b53d8a589b4e2d4c15a25007f8d8961
parent17a784b808bb9934930aebccfb14e5fa8720ed9f (diff)
Use private member directly
-rw-r--r--src/lib/marble/ViewportParams.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/marble/ViewportParams.cpp b/src/lib/marble/ViewportParams.cpp
index 017ba5d..860efcc 100644
--- a/src/lib/marble/ViewportParams.cpp
+++ b/src/lib/marble/ViewportParams.cpp
@@ -348,13 +348,13 @@ qreal ViewportParams::angularResolution() const
bool ViewportParams::resolves ( const GeoDataLatLonBox &latLonBox, qreal pixel ) const
{
- return latLonBox.width() + latLonBox.height() > pixel * angularResolution();
+ return latLonBox.width() + latLonBox.height() > pixel * d->m_angularResolution;
}
bool ViewportParams::resolves ( const GeoDataLatLonAltBox &latLonAltBox, qreal pixel, qreal altitude ) const
{
- return latLonAltBox.width() + latLonAltBox.height() > pixel * angularResolution()
+ return latLonAltBox.width() + latLonAltBox.height() > pixel * d->m_angularResolution
|| latLonAltBox.maxAltitude() - latLonAltBox.minAltitude() > altitude;
}
@@ -368,7 +368,7 @@ bool ViewportParams::resolves ( const GeoDataCoordinates &coord1,
coord2.geoCoordinates( lon2, lat2 );
// We take the manhattan length as an approximation for the distance
- return ( fabs( lon2 - lon1 ) + fabs( lat2 - lat1 ) > angularResolution() );
+ return ( fabs( lon2 - lon1 ) + fabs( lat2 - lat1 ) > d->m_angularResolution );
}