diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-05-29 12:37:14 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-29 12:54:52 +0200 |
commit | b9bfd16fd2761d1e019c84490ddb38b1be3f6a4a (patch) | |
tree | 1a3c012fe53fd040c2aae34fe61722b44cbca4aa /src/3rdparty/poly2tri | |
parent | c77d8c17c0264fd902aa0fcd54a435f6a9f216b0 (diff) | |
download | qtlocation-b9bfd16fd2761d1e019c84490ddb38b1be3f6a4a.tar.gz |
QtLocation: Fix compiler warnings.
- Assigned/unused variables.
- Signed/unsigned comparison
Change-Id: I712baa90442f9fc9699965e7c7e1c5f4ca319aab
Reviewed-by: Jean Gressmann <jean.gressmann@nokia.com>
Diffstat (limited to 'src/3rdparty/poly2tri')
-rw-r--r-- | src/3rdparty/poly2tri/common/shapes.cpp | 4 | ||||
-rw-r--r-- | src/3rdparty/poly2tri/sweep/sweep.cpp | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/3rdparty/poly2tri/common/shapes.cpp b/src/3rdparty/poly2tri/common/shapes.cpp index b8bcf702..2ac7e979 100644 --- a/src/3rdparty/poly2tri/common/shapes.cpp +++ b/src/3rdparty/poly2tri/common/shapes.cpp @@ -119,10 +119,6 @@ void Triangle::ClearDelunayEdges() Point* Triangle::OppositePoint(Triangle& t, Point& p) { Point *cw = t.PointCW(p); - float x = cw->x; - float y = cw->y; - x = p.x; - y = p.y; return PointCW(*cw); } diff --git a/src/3rdparty/poly2tri/sweep/sweep.cpp b/src/3rdparty/poly2tri/sweep/sweep.cpp index 8aaa8f63..dd36d706 100644 --- a/src/3rdparty/poly2tri/sweep/sweep.cpp +++ b/src/3rdparty/poly2tri/sweep/sweep.cpp @@ -803,7 +803,7 @@ void Sweep::FlipScanEdgeEvent(SweepContext& tcx, Point& ep, Point& eq, Triangle& Sweep::~Sweep() { // Clean up memory - for (int i = 0; i < nodes_.size(); i++) { + for (size_t i = 0; i < nodes_.size(); i++) { delete nodes_[i]; } |