~ubuntu-branches/ubuntu/wily/marble/wily-proposed

« back to all changes in this revision

Viewing changes to src/lib/marble/geodata/handlers/kml/KmlSchemaDataTagHandler.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2014-12-18 14:08:05 UTC
  • mfrom: (1.5.8) (68.1.7 vivid-proposed)
  • Revision ID: package-import@ubuntu.com-20141218140805-s9vz8rnjd34ekcbc
Tags: 4:14.12.0-0ubuntu2
Remove .acc files, there are no abi tars and we already have .symbols files

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#include "KmlElementDictionary.h"
16
16
 
17
17
#include "GeoDataExtendedData.h"
 
18
#include "GeoDataSchemaData.h"
18
19
 
19
20
#include "GeoParser.h"
20
21
 
32
33
 
33
34
    if( parentItem.represents( kmlTag_ExtendedData ) ) {
34
35
 
 
36
        GeoDataSchemaData schemaData;
35
37
        QString schemaUrl = parser.attribute( "schemaUrl" ).trimmed();
36
 
 
37
 
        return parentItem.nodeAs<GeoDataExtendedData>();
38
 
    } else {
39
 
        return 0;
 
38
        schemaData.setSchemaUrl( schemaUrl );
 
39
        parentItem.nodeAs<GeoDataExtendedData>()->addSchemaData( schemaData );
 
40
        return &parentItem.nodeAs<GeoDataExtendedData>()->schemaData( schemaUrl );
40
41
    }
41
 
 
42
 
}
43
 
 
44
 
}
45
 
}
 
42
    return 0;
 
43
}
 
44
 
 
45
} //namespace kml
 
46
 
 
47
} // namespace Marble