summaryrefslogtreecommitdiff
path: root/src/text
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-04-16 10:55:06 -0400
committerKonstantin Käfer <mail@kkaefer.com>2014-04-16 10:55:06 -0400
commit797f590cfb846e978561f2ff1e6921e37c2d4aff (patch)
tree062243d9fc3e3c612d2b4c70849ae6f871538054 /src/text
parent74cb7edb5b3adcb627659064dd0a7f3acfd4b87c (diff)
downloadqtlocation-mapboxgl-797f590cfb846e978561f2ff1e6921e37c2d4aff.tar.gz
cleanup + unused arguments
Diffstat (limited to 'src/text')
-rw-r--r--src/text/placement.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/text/placement.cpp b/src/text/placement.cpp
index e556e57564..15cb787511 100644
--- a/src/text/placement.cpp
+++ b/src/text/placement.cpp
@@ -88,7 +88,7 @@ void getSegmentGlyphs(std::back_insert_iterator<GlyphInstances> glyphs,
vec2<float> newAnchor = anchor;
- if (line.size() <= segment) {
+ if ((int)line.size() <= segment) {
return;
}
vec2<float> end = line[segment];
@@ -130,7 +130,7 @@ void getSegmentGlyphs(std::back_insert_iterator<GlyphInstances> glyphs,
// skip duplicate nodes
while (newAnchor == end) {
segment += direction;
- if (line.size() <= segment) {
+ if ((int)line.size() <= segment) {
anchor.scale = scale;
return;
}