diff --git a/AK/Tests/TestNeverDestroyed.cpp b/AK/Tests/TestNeverDestroyed.cpp index ed76b19339..90b4c6951d 100644 --- a/AK/Tests/TestNeverDestroyed.cpp +++ b/AK/Tests/TestNeverDestroyed.cpp @@ -58,7 +58,7 @@ TEST_CASE(should_construct_by_copy) TEST_CASE(should_construct_by_move) { Counter c {}; - AK::NeverDestroyed n { AK::move(c) }; + AK::NeverDestroyed n { move(c) }; EXPECT_EQ(0, n->num_copies); EXPECT_EQ(1, n->num_moves); diff --git a/AK/TypedTransfer.h b/AK/TypedTransfer.h index 44b1c884c9..cfd914779c 100644 --- a/AK/TypedTransfer.h +++ b/AK/TypedTransfer.h @@ -45,9 +45,9 @@ public: for (size_t i = 0; i < count; ++i) { if (destination <= source) - new (&destination[i]) T(AK::move(source[i])); + new (&destination[i]) T(std::move(source[i])); else - new (&destination[count - i - 1]) T(AK::move(source[count - i - 1])); + new (&destination[count - i - 1]) T(std::move(source[count - i - 1])); } return; diff --git a/Userland/DevTools/HackStudio/LanguageServers/Cpp/ParserAutoComplete.cpp b/Userland/DevTools/HackStudio/LanguageServers/Cpp/ParserAutoComplete.cpp index 43dcce5d7e..60351f11ea 100644 --- a/Userland/DevTools/HackStudio/LanguageServers/Cpp/ParserAutoComplete.cpp +++ b/Userland/DevTools/HackStudio/LanguageServers/Cpp/ParserAutoComplete.cpp @@ -75,7 +75,7 @@ OwnPtr ParserAutoComplete::create_document_dat update_declared_symbols(*document_data); - return move(document_data); + return document_data; } void ParserAutoComplete::set_document_data(const String& file, OwnPtr&& data) diff --git a/Userland/DevTools/HackStudio/LanguageServers/Shell/AutoComplete.cpp b/Userland/DevTools/HackStudio/LanguageServers/Shell/AutoComplete.cpp index 858349d6f0..1302646d79 100644 --- a/Userland/DevTools/HackStudio/LanguageServers/Shell/AutoComplete.cpp +++ b/Userland/DevTools/HackStudio/LanguageServers/Shell/AutoComplete.cpp @@ -67,7 +67,7 @@ OwnPtr AutoComplete::create_document_data_for(const get_or_create_document_data(path); update_declared_symbols(*document_data); - return move(document_data); + return document_data; } void AutoComplete::set_document_data(const String& file, OwnPtr&& data) diff --git a/Userland/Libraries/LibDebug/DebugSession.cpp b/Userland/Libraries/LibDebug/DebugSession.cpp index e35886a734..bc584be00c 100644 --- a/Userland/Libraries/LibDebug/DebugSession.cpp +++ b/Userland/Libraries/LibDebug/DebugSession.cpp @@ -120,7 +120,7 @@ OwnPtr DebugSession::exec_and_attach(const String& command, String // At this point, libraries should have been loaded debug_session->update_loaded_libs(); - return move(debug_session); + return debug_session; } bool DebugSession::poke(u32* address, u32 data) diff --git a/Userland/Libraries/LibImageDecoderClient/Client.cpp b/Userland/Libraries/LibImageDecoderClient/Client.cpp index f8428f060a..f68cac18fe 100644 --- a/Userland/Libraries/LibImageDecoderClient/Client.cpp +++ b/Userland/Libraries/LibImageDecoderClient/Client.cpp @@ -78,7 +78,7 @@ Optional Client::decode_image(const ByteBuffer& encoded_data) frame.bitmap = response->bitmaps()[i].bitmap(); frame.duration = response->durations()[i]; } - return move(image); + return image; } } diff --git a/Userland/Libraries/LibMarkdown/Table.cpp b/Userland/Libraries/LibMarkdown/Table.cpp index b70c1f572c..6545c19b00 100644 --- a/Userland/Libraries/LibMarkdown/Table.cpp +++ b/Userland/Libraries/LibMarkdown/Table.cpp @@ -231,7 +231,7 @@ OwnPtr Table::parse(Vector::ConstIterator& lines) table->m_row_count = row_count; - return move(table); + return table; } } diff --git a/Userland/Services/LookupServer/LookupServer.cpp b/Userland/Services/LookupServer/LookupServer.cpp index c1523d713c..753456e12c 100644 --- a/Userland/Services/LookupServer/LookupServer.cpp +++ b/Userland/Services/LookupServer/LookupServer.cpp @@ -203,7 +203,7 @@ Vector LookupServer::lookup(const DNSName& name, unsigned short recor return {}; } - return move(answers); + return answers; } Vector LookupServer::lookup(const DNSName& name, const String& nameserver, bool& did_get_response, unsigned short record_type, ShouldRandomizeCase should_randomize_case) @@ -296,7 +296,7 @@ Vector LookupServer::lookup(const DNSName& name, const String& namese answers.append(answer); } - return move(answers); + return answers; } void LookupServer::put_in_cache(const DNSAnswer& answer) diff --git a/Userland/Shell/Parser.cpp b/Userland/Shell/Parser.cpp index b35ac15ac9..6208b0a8fb 100644 --- a/Userland/Shell/Parser.cpp +++ b/Userland/Shell/Parser.cpp @@ -1239,7 +1239,7 @@ RefPtr Parser::parse_string() auto result = create(move(text)); // String Literal if (is_error) result->set_is_syntax_error(*create("Expected a terminating single quote", true)); - return move(result); + return result; } return nullptr;