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,