make unique ptr manually

This commit is contained in:
Ari Lazier 2016-05-19 14:06:14 -07:00
parent fc794bbf31
commit 50c7b6245f
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@ Query Results::get_query() const
// The TableView has no associated query so create one with no conditions that is restricted // The TableView has no associated query so create one with no conditions that is restricted
// to the rows in the TableView. // to the rows in the TableView.
m_table_view.sync_if_needed(); m_table_view.sync_if_needed();
return Query(*m_table, (std::unique_ptr<TableViewBase>)std::make_unique<TableView>(m_table_view)); return Query(*m_table, std::unique_ptr<TableViewBase>(new TableView(m_table_view)));
} }
case Mode::LinkView: case Mode::LinkView:
return m_table->where(m_link_view); return m_table->where(m_link_view);