diff --git a/src/results.cpp b/src/results.cpp index f8682b10..df4679a2 100644 --- a/src/results.cpp +++ b/src/results.cpp @@ -419,7 +419,7 @@ Query Results::get_query() const // The TableView has no associated query so create one with no conditions that is restricted // to the rows in the TableView. m_table_view.sync_if_needed(); - return Query(*m_table, (std::unique_ptr)std::make_unique(m_table_view)); + return Query(*m_table, std::unique_ptr(new TableView(m_table_view))); } case Mode::LinkView: return m_table->where(m_link_view);