Rename AsyncFriend to Interal

This commit is contained in:
Thomas Goyne 2016-01-27 06:44:07 -08:00
parent c46a2a34de
commit 1430fcf474
3 changed files with 4 additions and 4 deletions

View File

@ -202,8 +202,8 @@ bool AsyncQuery::deliver(SharedGroup& sg, std::exception_ptr err)
if (m_tv_handover) {
m_tv_handover->version = m_sg_version;
Results::AsyncFriend::set_table_view(*m_target_results,
std::move(*sg.import_from_handover(std::move(m_tv_handover))));
Results::Internal::set_table_view(*m_target_results,
std::move(*sg.import_from_handover(std::move(m_tv_handover))));
m_delievered_table_version = m_handed_over_table_version;
}

View File

@ -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))};
}
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
// new ones until the user actually uses the Results object again

View File

@ -200,7 +200,7 @@ public:
// Helper type to let AsyncQuery update the tableview without giving access
// to any other privates or letting anyone else do so
class AsyncFriend {
class Internal {
friend class _impl::AsyncQuery;
static void set_table_view(Results& results, TableView&& tv);
};