Ignore:
Timestamp:
2015-12-29T19:23:48+01:00 (9 years ago)
Author:
Don-vip
Message:

use LatLon.ZERO instead of new LatLon(0, 0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/NmeaReader.java

    r8870 r9214  
    455455        // return a zero latlon instead of null so it is logged as zero coordinate
    456456        // instead of malformed sentence
    457         if (widthNorth.isEmpty() && lengthEast.isEmpty()) return new LatLon(0.0, 0.0);
     457        if (widthNorth.isEmpty() && lengthEast.isEmpty()) return LatLon.ZERO;
    458458
    459459        // The format is xxDDLL.LLLL
Note: See TracChangeset for help on using the changeset viewer.