diff --git a/src/impl/async_query.cpp b/src/impl/async_query.cpp index 0c830119..3917d23e 100644 --- a/src/impl/async_query.cpp +++ b/src/impl/async_query.cpp @@ -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; } diff --git a/src/results.cpp b/src/results.cpp index 2916daf7..c21442f6 100644 --- a/src/results.cpp +++ b/src/results.cpp @@ -374,7 +374,7 @@ AsyncQueryCancelationToken Results::async(std::functionadd_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 diff --git a/src/results.hpp b/src/results.hpp index 5e82bed1..578ebe16 100644 --- a/src/results.hpp +++ b/src/results.hpp @@ -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); };