forked from organicmaps/organicmaps
review fixes
This commit is contained in:
parent
c0bb113d2f
commit
cbadd2d173
2 changed files with 8 additions and 2 deletions
|
@ -16,7 +16,6 @@ namespace filter
|
|||
namespace availability
|
||||
{
|
||||
using Results = platform::SafeCallback<void(search::Results const &results)>;
|
||||
using ResultsUnsafe = std::function<void(search::Results const &results)>;
|
||||
|
||||
struct Params
|
||||
{
|
||||
|
@ -26,11 +25,16 @@ struct Params
|
|||
Results m_callback;
|
||||
};
|
||||
|
||||
struct ParamsInternal
|
||||
namespace internal
|
||||
{
|
||||
using ResultsUnsafe = std::function<void(search::Results const &results)>;
|
||||
|
||||
struct Params
|
||||
{
|
||||
AvailabilityParams m_params;
|
||||
ResultsUnsafe m_callback;
|
||||
};
|
||||
} // namespace internal
|
||||
} // namespace availability
|
||||
} // namespace filter
|
||||
} // namespace booking
|
||||
|
|
|
@ -22,6 +22,8 @@ public:
|
|||
virtual bool IsLocalAdsCustomer(Result const & result) const = 0;
|
||||
};
|
||||
|
||||
// The signature of the callback should be the same as EverywhereSaerchParams::OnResults, but
|
||||
// EverywhereSaerchParams is located in map project and we do not need dependency.
|
||||
using OnResults =
|
||||
std::function<void(Results const & results, std::vector<bool> const & isLocalAdsCustomer)>;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue