aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/files/GPXParser.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2012-04-23 07:50:26 +0200
committerBananeweizen <bananeweizen@gmx.de>2012-04-23 07:50:26 +0200
commitd2fba594dfea96b17ab01bb12afbc37ec10fe251 (patch)
tree2e272eae1a0eeadc9213e8059f8f1d6dc381e048 /main/src/cgeo/geocaching/files/GPXParser.java
parent0d19a993a9d2e99bd4f0627d182870ee1606cb91 (diff)
downloadcgeo-d2fba594dfea96b17ab01bb12afbc37ec10fe251.zip
cgeo-d2fba594dfea96b17ab01bb12afbc37ec10fe251.tar.gz
cgeo-d2fba594dfea96b17ab01bb12afbc37ec10fe251.tar.bz2
refactoring of database access
* use only one transaction when saving a cache * rework some methods to always take a collection of objects instead of calling the database multiple times
Diffstat (limited to 'main/src/cgeo/geocaching/files/GPXParser.java')
-rw-r--r--main/src/cgeo/geocaching/files/GPXParser.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/files/GPXParser.java b/main/src/cgeo/geocaching/files/GPXParser.java
index 8b9cdda..ec8c307 100644
--- a/main/src/cgeo/geocaching/files/GPXParser.java
+++ b/main/src/cgeo/geocaching/files/GPXParser.java
@@ -1,9 +1,9 @@
package cgeo.geocaching.files;
+import cgeo.geocaching.LogEntry;
import cgeo.geocaching.R;
import cgeo.geocaching.StoredList;
import cgeo.geocaching.cgCache;
-import cgeo.geocaching.LogEntry;
import cgeo.geocaching.cgTrackable;
import cgeo.geocaching.cgWaypoint;
import cgeo.geocaching.cgeoapplication;
@@ -76,7 +76,7 @@ public abstract class GPXParser extends FileParser {
private cgCache cache;
private cgTrackable trackable = new cgTrackable();
- private LogEntry log = new LogEntry();
+ private LogEntry log = null;
private String type = null;
private String sym = null;
@@ -674,7 +674,7 @@ public abstract class GPXParser extends FileParser {
@Override
public void start(Attributes attrs) {
- log = new LogEntry();
+ log = new LogEntry("", 0, LogType.LOG_UNKNOWN, "");
try {
if (attrs.getIndex("id") > -1) {