Fixed mistakes detected by clang.

This commit is contained in:
Mathew Sutcliffe
2014-10-16 16:37:55 +01:00
parent c30bf9f61e
commit f2412483a0
2 changed files with 3 additions and 3 deletions

View File

@@ -313,7 +313,7 @@ namespace BlackMisc
iterator find(const Key &key) { return m_impl.find(key); }
//! Returns true if dictionary contains an item with key, otherwise false
bool contains (const Key &key) const {return m_impl.contains(); }
bool contains (const Key &key) const {return m_impl.contains(key); }
//! Returns the number of items with key
int count(const Key &key) const { return m_impl.count(key); }
@@ -355,7 +355,7 @@ namespace BlackMisc
const Value value(const Key &key) const { return m_impl.value(key); }
//! Returns the value associated with the key or if key is not found defaultValue
const Value value(const Key &key, const Value &defaultValue) const { return m_impl.value(key); }
const Value value(const Key &key, const Value &defaultValue) const { return m_impl.value(key, defaultValue); }
//! Return a range of all values
CRange<const_iterator> values() const { return makeRange(begin(), end()); }

View File

@@ -94,7 +94,7 @@ namespace BlackMisc
//! Overloaded method taking the coordinates in a different form.
//! @{
void insert(const CLatitude &lat, const CLongitude &lon, const T &value) { insert(lat.value(PhysicalQuantities::CAngleUnit::rad()), lon.value(PhysicalQuantities::CAngleUnit::rad()), value); }
void insert(const ICoordinateGeodetic &coord, const T &value) { insert(coord.latitude(), coord.longitude()); }
void insert(const ICoordinateGeodetic &coord, const T &value) { insert(coord.latitude(), coord.longitude(), value); }
CRange<const_iterator> inTileAt(const CLatitude &lat, const CLongitude &lon) const { return inTileAt(lat.value(PhysicalQuantities::CAngleUnit::rad()), lon.value(PhysicalQuantities::CAngleUnit::rad())); }
CRange<const_iterator> inTileAt(const ICoordinateGeodetic &coord) const { return inTileAt(coord.latitude(), coord.longitude()); }
CRange<Iterators::ConcatIterator<const_iterator>> inAdjacentTiles(const CLatitude &lat, const CLongitude &lon, int degree = 1) const { return inAdjacentTiles(lat.value(PhysicalQuantities::CAngleUnit::rad()), lon.value(PhysicalQuantities::CAngleUnit::rad()), degree); }