mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 22:53:43 +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:
@@ -7,7 +7,6 @@
|
||||
#include "indexer/ftypes_matcher.hpp"
|
||||
#include "indexer/search_string_utils.hpp"
|
||||
|
||||
|
||||
namespace search
|
||||
{
|
||||
using namespace std;
|
||||
@@ -37,9 +36,7 @@ CBV CategoriesCache::Load(MwmContext const & context) const
|
||||
m_categories.ForEach([&request, &c](uint32_t const type)
|
||||
{
|
||||
c.ForEachInSubtree([&](uint32_t descendantType)
|
||||
{
|
||||
request.m_categories.emplace_back(FeatureTypeToString(c.GetIndexForType(descendantType)));
|
||||
}, type);
|
||||
{ request.m_categories.emplace_back(FeatureTypeToString(c.GetIndexForType(descendantType))); }, type);
|
||||
});
|
||||
|
||||
Retrieval retrieval(context, m_cancellable);
|
||||
@@ -49,47 +46,39 @@ CBV CategoriesCache::Load(MwmContext const & context) const
|
||||
// StreetsCache ------------------------------------------------------------------------------------
|
||||
StreetsCache::StreetsCache(base::Cancellable const & cancellable)
|
||||
: CategoriesCache(ftypes::IsStreetOrSquareChecker::Instance(), cancellable)
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
// SuburbsCache ------------------------------------------------------------------------------------
|
||||
SuburbsCache::SuburbsCache(base::Cancellable const & cancellable)
|
||||
: CategoriesCache(ftypes::IsSuburbChecker::Instance(), cancellable)
|
||||
{
|
||||
}
|
||||
{}
|
||||
// VillagesCache -----------------------------------------------------------------------------------
|
||||
VillagesCache::VillagesCache(base::Cancellable const & cancellable)
|
||||
: CategoriesCache(ftypes::IsVillageChecker::Instance(), cancellable)
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
// CountriesCache ----------------------------------------------------------------------------------
|
||||
CountriesCache::CountriesCache(base::Cancellable const & cancellable)
|
||||
: CategoriesCache(ftypes::IsCountryChecker::Instance(), cancellable)
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
// StatesCache -------------------------------------------------------------------------------------
|
||||
StatesCache::StatesCache(base::Cancellable const & cancellable)
|
||||
: CategoriesCache(ftypes::IsStateChecker::Instance(), cancellable)
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
// CitiesTownsOrVillagesCache ----------------------------------------------------------------------
|
||||
CitiesTownsOrVillagesCache::CitiesTownsOrVillagesCache(base::Cancellable const & cancellable)
|
||||
: CategoriesCache(ftypes::IsCityTownOrVillageChecker::Instance(), cancellable)
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
// HotelsCache -------------------------------------------------------------------------------------
|
||||
HotelsCache::HotelsCache(base::Cancellable const & cancellable)
|
||||
: CategoriesCache(ftypes::IsHotelChecker::Instance(), cancellable)
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
// FoodCache ---------------------------------------------------------------------------------------
|
||||
FoodCache::FoodCache(base::Cancellable const & cancellable)
|
||||
: CategoriesCache(ftypes::IsEatChecker::Instance(), cancellable)
|
||||
{
|
||||
}
|
||||
{}
|
||||
} // namespace search
|
||||
|
||||
Reference in New Issue
Block a user