From a8f1b235d7da3303332894b5cda9b7ff545a22f2 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 10 Nov 2015 16:07:54 -0800 Subject: [PATCH] Eliminate a query copy in Results::filter() --- results.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/results.cpp b/results.cpp index aa05b50a..215fcc3c 100644 --- a/results.cpp +++ b/results.cpp @@ -324,7 +324,7 @@ Results Results::sort(realm::SortOrder&& sort) const Results Results::filter(Query&& q) const { - return Results(m_realm, get_query().and_query(q), get_sort()); + return Results(m_realm, get_query().and_query(std::move(q)), get_sort()); } Results::UnsupportedColumnTypeException::UnsupportedColumnTypeException(size_t column, const Table* table) {