diff --git a/Userland/Applications/Assistant/Providers.cpp b/Userland/Applications/Assistant/Providers.cpp index 4f0ed7033ab..31acca3a979 100644 --- a/Userland/Applications/Assistant/Providers.cpp +++ b/Userland/Applications/Assistant/Providers.cpp @@ -117,7 +117,7 @@ void CalculatorProvider::query(DeprecatedString const& query, Function> results; - results.append(adopt_ref(*new CalculatorResult(calculation))); + results.append(make_ref_counted(calculation)); on_complete(move(results)); } @@ -235,7 +235,7 @@ void TerminalProvider::query(DeprecatedString const& query, Function> results; - results.append(adopt_ref(*new TerminalResult(move(command)))); + results.append(make_ref_counted(move(command))); on_complete(move(results)); } @@ -257,7 +257,7 @@ void URLProvider::query(DeprecatedString const& query, Function> results; - results.append(adopt_ref(*new URLResult(url))); + results.append(make_ref_counted(url)); on_complete(results); }