Commit 52740484 authored by Bernhard Beschow's avatar Bernhard Beschow

make attributes private

parent 0efc24be
......@@ -131,7 +131,7 @@ void VectorTileModel::removeTilesOutOfView(const GeoDataLatLonBox &boundingBox)
{
GeoDataLatLonBox const extendedViewport = boundingBox.scaled(2.0, 2.0);
for (auto iter = m_documents.begin(); iter != m_documents.end();) {
bool const isOutOfView = !extendedViewport.intersects(iter.value()->m_boundingBox);
bool const isOutOfView = !extendedViewport.intersects(iter.value()->latLonBox());
if (isOutOfView) {
iter = m_documents.erase(iter);
} else {
......
......@@ -93,12 +93,14 @@ private:
/** Remove the document from the tree and delete the document */
~CacheDocument();
GeoDataDocument *const m_document;
VectorTileModel *m_vectorTileModel;
GeoDataLatLonBox m_boundingBox;
GeoDataLatLonBox latLonBox() const { return m_boundingBox; }
private:
Q_DISABLE_COPY( CacheDocument )
GeoDataDocument *const m_document;
VectorTileModel *const m_vectorTileModel;
GeoDataLatLonBox m_boundingBox;
};
TileLoader *const m_loader;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment