-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.50..v0.2.51 changeset OsmMap.h
Garret Voltz edited this page Jan 15, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/elements/OsmMap.h b/hoot-core/src/main/cpp/hoot/core/elements/OsmMap.h
index a506186..1ae5c2d 100644
--- a/hoot-core/src/main/cpp/hoot/core/elements/OsmMap.h
+++ b/hoot-core/src/main/cpp/hoot/core/elements/OsmMap.h
@@ -299,9 +299,8 @@ public:
static void resetCounters() { IdGenerator::getInstance()->reset(); }
const IdGenerator& getIdGenerator() const { return *_idGen; }
- std::shared_ptr<IdGenerator> getIdGeneratorSp() const { return _idGenSp; }
void setIdGenerator(const std::shared_ptr<IdGenerator>& gen)
- { _idGenSp = gen; _idGen = gen.get(); }
+ { _idGen = gen; }
void setProjection(const std::shared_ptr<OGRSpatialReference>& srs);
@@ -332,8 +331,7 @@ public:
protected:
- mutable IdGenerator* _idGen;
- mutable std::shared_ptr<IdGenerator> _idGenSp;
+ mutable std::shared_ptr<IdGenerator> _idGen;
static std::shared_ptr<OGRSpatialReference> _wgs84;