Commit 3d9b8334 authored by Bernhard Beschow's avatar Bernhard Beschow

Use more specific type

Avoids losing too much type information since GeoNode does not even model a KML type. Using GeoDataTourPrimitive preserves that knowledge.
parent 030c21b7
......@@ -43,7 +43,7 @@ bool KmlPlaylistTagWriter::write( const GeoNode *node, GeoWriter& writer ) const
return true;
void KmlPlaylistTagWriter::writeTourPrimitive(const GeoNode *primitive, GeoWriter &writer)
void KmlPlaylistTagWriter::writeTourPrimitive(const GeoDataTourPrimitive *primitive, GeoWriter &writer)
if (const auto tourControl = geodata_cast<GeoDataTourControl>(primitive)) {
......@@ -26,7 +26,7 @@ public:
bool write( const GeoNode *node, GeoWriter& writer ) const override;
static void writeTourPrimitive(const GeoNode *primitive, GeoWriter &writer);
static void writeTourPrimitive(const GeoDataTourPrimitive *primitive, GeoWriter &writer);
static void writeTourControl(const GeoDataTourControl &tourControl, GeoWriter& writer );
static void writeWait(const GeoDataWait &wait, GeoWriter &writer);
static void writeSoundCue(const GeoDataSoundCue &cue, GeoWriter &writer);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment