diff options
author | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-04-13 15:50:45 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-05-11 07:09:37 +0000 |
commit | dad54e794f8e5ebf19883399a2481098b2043639 (patch) | |
tree | 5c9ded21ddf9af1e5b5fe13246e1484ed6b43e57 /examples | |
parent | e5eb36feb27500b43f694df3ac1619d36fe8e7ec (diff) |
MSVC: Silence compiler warning about INFINITY
Contrary to the comment, MSVC does support INFINITY, but
always prints a warning when it's used:
qpainterpath.cpp(3066) : warning C4756: overflow in constant arithmetic
Avoid this by using numeric_limits<T>::infinity.
Change-Id: Ie925b036b807378da5298a275fa108347c24519e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions