diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-04-10 10:43:15 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2017-04-11 18:19:07 +0000 |
commit | 213894299bcfe36c5b2469b2f6574996fdbbfd84 (patch) | |
tree | a7103131eaf50c78e4a29a38ec8f1279da6954d0 /src/positioning | |
parent | 34ff8eacba855db6527e564a6674a6b554f232bf (diff) | |
download | qtlocation-213894299bcfe36c5b2469b2f6574996fdbbfd84.tar.gz |
Fix size conversion warnings
Found by MSVC 2015
qclipperutils.cpp(65): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
Change-Id: I523b0abacd5148b2bf08fffd14b41a36046adafa
Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
Diffstat (limited to 'src/positioning')
-rw-r--r-- | src/positioning/qclipperutils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/positioning/qclipperutils.cpp b/src/positioning/qclipperutils.cpp index 08e65712..2f69d984 100644 --- a/src/positioning/qclipperutils.cpp +++ b/src/positioning/qclipperutils.cpp @@ -62,7 +62,7 @@ IntPoint QClipperUtils::toIntPoint(const QDoubleVector2D &p) QList<QDoubleVector2D> QClipperUtils::pathToQList(const Path &path) { QList<QDoubleVector2D> res; - res.reserve(path.size()); + res.reserve(int(path.size())); for (const IntPoint &ip: path) res.append(toVector2D(ip)); return res; @@ -71,7 +71,7 @@ QList<QDoubleVector2D> QClipperUtils::pathToQList(const Path &path) QList<QList<QDoubleVector2D> > QClipperUtils::pathsToQList(const Paths &paths) { QList<QList<QDoubleVector2D> > res; - res.reserve(paths.size()); + res.reserve(int(paths.size())); for (const Path &p: paths) { res.append(pathToQList(p)); } |