From 431a9c00a56cf4c603be1cf5f773b193621d8150 Mon Sep 17 00:00:00 2001 From: Kai Blaschke Date: Mon, 19 Feb 2024 16:55:19 +0100 Subject: Fixed a huge amount of Clang warnings On Linux and macOS, using Clang to compile OpenStarbound produces about 400 MB worth of warnings during the build, making the compiler output unreadable and slowing the build down considerably. 99% of the warnings were unqualified uses of std::move and std::forward, which are now all properly qualified. Fixed a few other minor warnings about non-virtual destructors and some uses of std::move preventing copy elision on temporary objects. Most remaining warnings are now unused parameters. --- source/frontend/StarTitleScreen.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/frontend/StarTitleScreen.cpp') diff --git a/source/frontend/StarTitleScreen.cpp b/source/frontend/StarTitleScreen.cpp index f9f16bd..895e88a 100644 --- a/source/frontend/StarTitleScreen.cpp +++ b/source/frontend/StarTitleScreen.cpp @@ -50,7 +50,7 @@ TitleScreen::TitleScreen(PlayerStoragePtr playerStorage, MixerPtr mixer) } void TitleScreen::renderInit(RendererPtr renderer) { - m_renderer = move(renderer); + m_renderer = std::move(renderer); m_environmentPainter = make_shared(m_renderer); } @@ -181,7 +181,7 @@ String TitleScreen::multiPlayerAddress() const { void TitleScreen::setMultiPlayerAddress(String address) { m_multiPlayerMenu->fetchChild("address")->setText(address); - m_connectionAddress = move(address); + m_connectionAddress = std::move(address); } String TitleScreen::multiPlayerPort() const { @@ -190,7 +190,7 @@ String TitleScreen::multiPlayerPort() const { void TitleScreen::setMultiPlayerPort(String port) { m_multiPlayerMenu->fetchChild("port")->setText(port); - m_connectionPort = move(port); + m_connectionPort = std::move(port); } String TitleScreen::multiPlayerAccount() const { @@ -199,7 +199,7 @@ String TitleScreen::multiPlayerAccount() const { void TitleScreen::setMultiPlayerAccount(String account) { m_multiPlayerMenu->fetchChild("account")->setText(account); - m_account = move(account); + m_account = std::move(account); } String TitleScreen::multiPlayerPassword() const { @@ -208,7 +208,7 @@ String TitleScreen::multiPlayerPassword() const { void TitleScreen::setMultiPlayerPassword(String password) { m_multiPlayerMenu->fetchChild("password")->setText(password); - m_password = move(password); + m_password = std::move(password); } void TitleScreen::initMainMenu() { -- cgit v1.2.3