diff options
author | Aaron McCarthy <aaron.mccarthy@jollamobile.com> | 2013-09-09 15:38:46 +1000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-16 10:25:59 +0200 |
commit | 87ce030b7b7336e561779dc9516d5ae2242a5d5f (patch) | |
tree | 465f162de1948064b992faad80fc7bcda903bd76 /src/positioning/positioning.pro | |
parent | 74a27699c7f474266fac98818c73f91e68220a87 (diff) | |
download | qtlocation-87ce030b7b7336e561779dc9516d5ae2242a5d5f.tar.gz |
Return NaN if position info source doesn't have an attribute.
The previous returned value of -1 could be a valid value for some
attributes. Returning NaN has the advantage that calculations done with
an attribute that has not been set will have the final result evaluate
to NaN as well.
Change-Id: I42fd3512453910efd78f3be66acba46a1e829ee0
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/positioning/positioning.pro')
0 files changed, 0 insertions, 0 deletions