diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2017-05-17 17:00:56 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-05-23 12:59:27 -0700 |
commit | 72b13cef6a83594b15f47bfeaee782504def619e (patch) | |
tree | b78d9d585ec99823efc62ffb26e8299b099ee8c2 /src/mbgl/text/quads.cpp | |
parent | 3d26574cb4077a8b48071e08f07574964587f747 (diff) | |
download | qtlocation-mapboxgl-72b13cef6a83594b15f47bfeaee782504def619e.tar.gz |
[core] Remove unnecessary optionals in PositionedIcon
Lack of icon is already checked at the call site of shapeIcon; no need to check hasArea() here.
Diffstat (limited to 'src/mbgl/text/quads.cpp')
-rw-r--r-- | src/mbgl/text/quads.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/text/quads.cpp b/src/mbgl/text/quads.cpp index 6f13331d4c..dc48634fb0 100644 --- a/src/mbgl/text/quads.cpp +++ b/src/mbgl/text/quads.cpp @@ -22,7 +22,7 @@ SymbolQuad getIconQuad(const Anchor& anchor, const float layoutTextSize, const style::SymbolPlacementType placement, const Shaping& shapedText) { - auto image = *shapedIcon.image(); + const SpriteAtlasElement& image = shapedIcon.image(); const float border = 1.0; auto left = shapedIcon.left() - border; |