From 0d868f2f2a6ef76e1a37226aa25551cae6cb3e18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Fri, 30 Nov 2018 10:16:41 +0100 Subject: [PATCH] Optimization --- src/style.cpp | 5 ----- src/style.h | 7 ++++--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/style.cpp b/src/style.cpp index 3f0af54..40336f7 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -522,11 +522,6 @@ bool Style::load(const QString &fileName) return true; } -bool Style::match(int zoom, int layer, const QVariantHash &tags) const -{ - return _layers.at(layer).match(zoom, tags); -} - void Style::setupLayer(Tile &tile, int layer) const { const Layer &sl = _layers.at(layer); diff --git a/src/style.h b/src/style.h index 4d4702e..9abf544 100644 --- a/src/style.h +++ b/src/style.h @@ -25,10 +25,11 @@ public: bool load(const QString &fileName); - const QStringList &sourceLayers() const {return _sourceLayers;} - - bool match(int zoom, int layer, const QVariantHash &tags) const; + const QStringList &sourceLayers() const + {return _sourceLayers;} + bool match(int zoom, int layer, const QVariantHash &tags) const + {return _layers.at(layer).match(zoom, tags);} void drawBackground(Tile &tile) const; void setupLayer(Tile &tile, int layer) const; void drawFeature(Tile &tile, int layer, const QPainterPath &path,