Changeset 9214 in josm for trunk/src/org/openstreetmap/josm


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

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

Location:
trunk/src/org/openstreetmap/josm
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java

    r8942 r9214  
    360360                // need to synthesize a download bounds lest the visual indication of downloaded area doesn't work
    361361                dataSet.dataSources.add(new DataSource(currentBounds != null ? currentBounds :
    362                     new Bounds(new LatLon(0, 0)), "OpenStreetMap server"));
     362                    new Bounds(LatLon.ZERO), "OpenStreetMap server"));
    363363            }
    364364
  • trunk/src/org/openstreetmap/josm/data/imagery/OffsetBookmark.java

    r8846 r9214  
    106106            center = Main.getProjection().eastNorth2latlon(Main.map.mapView.getCenter());
    107107        } else {
    108             center = new LatLon(0, 0);
     108            center = LatLon.ZERO;
    109109        }
    110110        OffsetBookmark nb = new OffsetBookmark(
  • trunk/src/org/openstreetmap/josm/gui/dialogs/LatLonDialog.java

    r8909 r9214  
    195195    public void setCoordinates(LatLon ll) {
    196196        if (ll == null) {
    197             ll = new LatLon(0, 0);
     197            ll = LatLon.ZERO;
    198198        }
    199199        this.latLonCoordinates = ll;
  • trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/PlayHeadMarker.java

    r9078 r9214  
    6161
    6262    private PlayHeadMarker() {
    63         super(new LatLon(0.0, 0.0), "",
     63        super(LatLon.ZERO, "",
    6464                Main.pref.get("marker.audiotracericon", "audio-tracer"),
    6565                null, -1.0, 0.0);
  • 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.