Rename AsyncFriend to Interal
This commit is contained in:
parent
c46a2a34de
commit
1430fcf474
|
@ -202,8 +202,8 @@ bool AsyncQuery::deliver(SharedGroup& sg, std::exception_ptr err)
|
||||||
|
|
||||||
if (m_tv_handover) {
|
if (m_tv_handover) {
|
||||||
m_tv_handover->version = m_sg_version;
|
m_tv_handover->version = m_sg_version;
|
||||||
Results::AsyncFriend::set_table_view(*m_target_results,
|
Results::Internal::set_table_view(*m_target_results,
|
||||||
std::move(*sg.import_from_handover(std::move(m_tv_handover))));
|
std::move(*sg.import_from_handover(std::move(m_tv_handover))));
|
||||||
m_delievered_table_version = m_handed_over_table_version;
|
m_delievered_table_version = m_handed_over_table_version;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -374,7 +374,7 @@ AsyncQueryCancelationToken Results::async(std::function<void (std::exception_ptr
|
||||||
return {m_background_query, m_background_query->add_callback(std::move(target))};
|
return {m_background_query, m_background_query->add_callback(std::move(target))};
|
||||||
}
|
}
|
||||||
|
|
||||||
void Results::AsyncFriend::set_table_view(Results& results, realm::TableView &&tv)
|
void Results::Internal::set_table_view(Results& results, realm::TableView &&tv)
|
||||||
{
|
{
|
||||||
// If the previous TableView was never actually used, then stop generating
|
// If the previous TableView was never actually used, then stop generating
|
||||||
// new ones until the user actually uses the Results object again
|
// new ones until the user actually uses the Results object again
|
||||||
|
|
|
@ -200,7 +200,7 @@ public:
|
||||||
|
|
||||||
// Helper type to let AsyncQuery update the tableview without giving access
|
// Helper type to let AsyncQuery update the tableview without giving access
|
||||||
// to any other privates or letting anyone else do so
|
// to any other privates or letting anyone else do so
|
||||||
class AsyncFriend {
|
class Internal {
|
||||||
friend class _impl::AsyncQuery;
|
friend class _impl::AsyncQuery;
|
||||||
static void set_table_view(Results& results, TableView&& tv);
|
static void set_table_view(Results& results, TableView&& tv);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue