diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2013-01-07 21:50:10 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2013-01-07 21:50:10 +0100 |
| commit | 3fb0e5f2d74b851836473a780a593cc7893cca9a (patch) | |
| tree | b5b621cd92483c0810524fc1e89385df573ecb2f /main/src/cgeo/geocaching/apps/AbstractLocusApp.java | |
| parent | 34add6e4844c9de685a8a16c1f164e896fdb18be (diff) | |
| download | cgeo-3fb0e5f2d74b851836473a780a593cc7893cca9a.zip cgeo-3fb0e5f2d74b851836473a780a593cc7893cca9a.tar.gz cgeo-3fb0e5f2d74b851836473a780a593cc7893cca9a.tar.bz2 | |
Refactoring: rename cgWaypoint into Waypoint
Diffstat (limited to 'main/src/cgeo/geocaching/apps/AbstractLocusApp.java')
| -rw-r--r-- | main/src/cgeo/geocaching/apps/AbstractLocusApp.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/main/src/cgeo/geocaching/apps/AbstractLocusApp.java b/main/src/cgeo/geocaching/apps/AbstractLocusApp.java index 8f61e72..ad421f6 100644 --- a/main/src/cgeo/geocaching/apps/AbstractLocusApp.java +++ b/main/src/cgeo/geocaching/apps/AbstractLocusApp.java @@ -2,7 +2,7 @@ package cgeo.geocaching.apps; import cgeo.geocaching.R; import cgeo.geocaching.cgCache; -import cgeo.geocaching.cgWaypoint; +import cgeo.geocaching.Waypoint; import cgeo.geocaching.cgeoapplication; import cgeo.geocaching.enumerations.CacheSize; import cgeo.geocaching.enumerations.CacheType; @@ -68,8 +68,8 @@ public abstract class AbstractLocusApp extends AbstractApp { // get icon and Point if (o instanceof cgCache) { p = getCachePoint((cgCache) o, withCacheWaypoints, withCacheDetails); - } else if (o instanceof cgWaypoint) { - p = getWaypointPoint((cgWaypoint) o); + } else if (o instanceof Waypoint) { + p = getWaypointPoint((Waypoint) o); } if (p != null) { pd.addPoint(p); @@ -146,7 +146,7 @@ public abstract class AbstractLocusApp extends AbstractApp { if (withWaypoints && cache.hasWaypoints()) { pg.waypoints = new ArrayList<PointGeocachingDataWaypoint>(); - for (cgWaypoint waypoint : cache.getWaypoints()) { + for (Waypoint waypoint : cache.getWaypoints()) { if (waypoint == null || waypoint.getCoords() == null) { continue; } @@ -182,7 +182,7 @@ public abstract class AbstractLocusApp extends AbstractApp { * @param waypoint * @return null, when the <code>Point</code> could not be constructed */ - private static Point getWaypointPoint(cgWaypoint waypoint) { + private static Point getWaypointPoint(Waypoint waypoint) { if (waypoint == null || waypoint.getCoords() == null) { return null; } |
