diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-27 18:30:35 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-04-17 13:36:50 +0300 |
commit | dffe00feeade4d65d10deecdc196add14b791c11 (patch) | |
tree | c0b834bf8e6f44e37b5d01af87c044bdf91c7079 /src/mbgl/layout/symbol_layout.hpp | |
parent | 2eebd7170aa72168df1d963422d256411fc4f5ef (diff) | |
download | qtlocation-mapboxgl-dffe00feeade4d65d10deecdc196add14b791c11.tar.gz |
[core] Fix readability-avoid-const-params-in-decls errors in header files
As reported by clang-tidy-8.
Diffstat (limited to 'src/mbgl/layout/symbol_layout.hpp')
-rw-r--r-- | src/mbgl/layout/symbol_layout.hpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mbgl/layout/symbol_layout.hpp b/src/mbgl/layout/symbol_layout.hpp index a1c0b86fd9..915a2ae924 100644 --- a/src/mbgl/layout/symbol_layout.hpp +++ b/src/mbgl/layout/symbol_layout.hpp @@ -39,8 +39,8 @@ public: void createBucket(const ImagePositions&, std::unique_ptr<FeatureIndex>&, std::unordered_map<std::string, LayerRenderData>&, - const bool firstLoad, - const bool showCollisionBoxes, + bool firstLoad, + bool showCollisionBoxes, const CanonicalTileID& canonical) override; bool hasSymbolInstances() const override; @@ -65,7 +65,7 @@ public: static std::vector<float> calculateTileDistances(const GeometryCoordinates& line, const Anchor& anchor); private: - void addFeature(const size_t, + void addFeature(size_t, const SymbolFeature&, const ShapedTextOrientations& shapedTextOrientations, optional<PositionedIcon> shapedIcon, @@ -73,22 +73,22 @@ private: std::array<float, 2> textOffset, float layoutTextSize, float layoutIconSize, - const SymbolContent iconType); + SymbolContent iconType); - bool anchorIsTooClose(const std::u16string& text, const float repeatDistance, const Anchor&); + bool anchorIsTooClose(const std::u16string& text, float repeatDistance, const Anchor&); std::map<std::u16string, std::vector<Anchor>> compareText; void addToDebugBuffers(SymbolBucket&); // Adds placed items to the buffer. size_t addSymbol(SymbolBucket::Buffer&, - const Range<float> sizeData, + Range<float> sizeData, const SymbolQuad&, const Anchor& labelAnchor, PlacedSymbol& placedSymbol, float sortKey); size_t addSymbols(SymbolBucket::Buffer&, - const Range<float> sizeData, + Range<float> sizeData, const SymbolQuads&, const Anchor& labelAnchor, PlacedSymbol& placedSymbol, |