mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
Fixed mistakes detected by clang.
This commit is contained in:
@@ -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()); }
|
||||
|
||||
@@ -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); }
|
||||
|
||||
Reference in New Issue
Block a user