mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -44,7 +44,8 @@ public:
|
||||
|
||||
std::string_view GetMetadata(MetadataID type) const;
|
||||
|
||||
template <class FnT> void ForEachMetadataReadable(FnT && fn) const
|
||||
template <class FnT>
|
||||
void ForEachMetadataReadable(FnT && fn) const
|
||||
{
|
||||
m_metadata.ForEach([&fn](MetadataID id, std::string const & value)
|
||||
{
|
||||
@@ -58,8 +59,7 @@ public:
|
||||
case MetadataID::FMD_CUSTOM_IDS:
|
||||
case MetadataID::FMD_PRICE_RATES:
|
||||
case MetadataID::FMD_RATINGS:
|
||||
case MetadataID::FMD_EXTERNAL_URI:
|
||||
break;
|
||||
case MetadataID::FMD_EXTERNAL_URI: break;
|
||||
default: fn(id, value); break;
|
||||
}
|
||||
});
|
||||
@@ -92,8 +92,8 @@ public:
|
||||
/// @}
|
||||
|
||||
bool IsPointType() const;
|
||||
feature::GeomType GetGeomType() const { return m_geomType; };
|
||||
int8_t GetLayer() const { return m_layer; };
|
||||
feature::GeomType GetGeomType() const { return m_geomType; }
|
||||
int8_t GetLayer() const { return m_layer; }
|
||||
|
||||
/// @returns true if object is of building type.
|
||||
bool IsBuilding() const;
|
||||
@@ -105,14 +105,14 @@ public:
|
||||
|
||||
/// @returns all localized POI types separated by kFieldsSeparator to display in UI.
|
||||
std::string GetLocalizedAllTypes(bool withMainType) const;
|
||||
|
||||
|
||||
protected:
|
||||
/// @returns "the best" single type to display in UI.
|
||||
std::string GetLocalizedType() const;
|
||||
|
||||
/// @returns all readable internal types separated by kFieldsSeparator for debugging.
|
||||
std::string GetAllReadableTypes() const;
|
||||
|
||||
|
||||
FeatureID m_featureID;
|
||||
m2::PointD m_mercator;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user