diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2011-04-25 07:50:21 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:16:25 +0300 |
commit | 47bbc46b9fc6a7f13f77f09c8c0a5437fbad1fce (patch) | |
tree | 0d8cb5b1e178a2636b0c7319d9358ac10c5cdf0d /generator | |
parent | 0f5d7d5084b60c151ff0a2b8e28d175ddd2efb80 (diff) |
Fixed warnings
Diffstat (limited to 'generator')
-rw-r--r-- | generator/osm_xml_parser.cpp | 6 | ||||
-rw-r--r-- | generator/osm_xml_parser.hpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/generator/osm_xml_parser.cpp b/generator/osm_xml_parser.cpp index f0f0b1da2f..04413cde74 100644 --- a/generator/osm_xml_parser.cpp +++ b/generator/osm_xml_parser.cpp @@ -101,7 +101,7 @@ namespace osm m_relations.insert(relations_type::value_type(id, OsmRelation(id, tags, members))); } - OsmNode OsmRawData::NodeById(OsmId id) const throw (OsmInvalidIdException) + OsmNode OsmRawData::NodeById(OsmId id) const { nodes_type::const_iterator found = m_nodes.find(id); if (found == m_nodes.end()) @@ -109,7 +109,7 @@ namespace osm return found->second; } - OsmWay OsmRawData::WayById(OsmId id) const throw (OsmInvalidIdException) + OsmWay OsmRawData::WayById(OsmId id) const { ways_type::const_iterator found = m_ways.find(id); if (found == m_ways.end()) @@ -117,7 +117,7 @@ namespace osm return found->second; } - OsmRelation OsmRawData::RelationById(OsmId id) const throw (OsmInvalidIdException) + OsmRelation OsmRawData::RelationById(OsmId id) const { relations_type::const_iterator found = m_relations.find(id); if (found == m_relations.end()) diff --git a/generator/osm_xml_parser.hpp b/generator/osm_xml_parser.hpp index 09e63076ea..a23b5fc65f 100644 --- a/generator/osm_xml_parser.hpp +++ b/generator/osm_xml_parser.hpp @@ -99,9 +99,9 @@ namespace osm void AddWay(OsmId id, OsmTags const & tags, OsmIds const & nodeIds); void AddRelation(OsmId id, OsmTags const & tags, RelationMembers const & members); - OsmNode NodeById(OsmId id) const throw (OsmInvalidIdException); - OsmWay WayById(OsmId id) const throw (OsmInvalidIdException); - OsmRelation RelationById(OsmId id) const throw (OsmInvalidIdException); + OsmNode NodeById(OsmId id) const; //!< @throws OsmInvalidIdException + OsmWay WayById(OsmId id) const; //!< @throws OsmInvalidIdException + OsmRelation RelationById(OsmId id) const; //!< @throws OsmInvalidIdException OsmIds RelationsByKey(string const & key) const; OsmIds RelationsByTag(OsmTag const & tag) const; |