зеркало из https://github.com/microsoft/cppwinrt.git
Changed visibility of `observable_map_base::call_changed` to `protected`
This commit is contained in:
Родитель
a22626ae6f
Коммит
4834e605f4
|
@ -619,15 +619,17 @@ WINRT_EXPORT namespace winrt
|
|||
call_changed(Windows::Foundation::Collections::CollectionChange::Reset, impl::empty_value<K>());
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
event<Windows::Foundation::Collections::MapChangedEventHandler<K, V>> m_changed;
|
||||
protected:
|
||||
|
||||
void call_changed(Windows::Foundation::Collections::CollectionChange const change, K const& key)
|
||||
{
|
||||
m_changed(static_cast<D const&>(*this), make<args>(change, key));
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
event<Windows::Foundation::Collections::MapChangedEventHandler<K, V>> m_changed;
|
||||
|
||||
struct args : implements<args, Windows::Foundation::Collections::IMapChangedEventArgs<K>>
|
||||
{
|
||||
args(Windows::Foundation::Collections::CollectionChange const change, K const& key) noexcept :
|
||||
|
|
Загрузка…
Ссылка в новой задаче