mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 07:39:26 +01:00
Fix several minor warnings
This commit is contained in:
parent
6b686be5f1
commit
532e25be12
@ -74,7 +74,7 @@ void ConfigStringChoice::OnConfigChanged()
|
|||||||
|
|
||||||
ConfigComplexChoice::ConfigComplexChoice(const InfoVariant setting1, const InfoVariant setting2,
|
ConfigComplexChoice::ConfigComplexChoice(const InfoVariant setting1, const InfoVariant setting2,
|
||||||
Config::Layer* layer)
|
Config::Layer* layer)
|
||||||
: m_setting1(setting1), m_setting2(setting2), m_layer(layer)
|
: m_layer(layer), m_setting1(setting1), m_setting2(setting2)
|
||||||
{
|
{
|
||||||
connect(&Settings::Instance(), &Settings::ConfigChanged, this, &ConfigComplexChoice::Refresh);
|
connect(&Settings::Instance(), &Settings::ConfigChanged, this, &ConfigComplexChoice::Refresh);
|
||||||
connect(this, &QComboBox::currentIndexChanged, this, &ConfigComplexChoice::SaveValue);
|
connect(this, &QComboBox::currentIndexChanged, this, &ConfigComplexChoice::SaveValue);
|
||||||
@ -115,7 +115,7 @@ void ConfigComplexChoice::Reset()
|
|||||||
|
|
||||||
void ConfigComplexChoice::SaveValue(int choice)
|
void ConfigComplexChoice::SaveValue(int choice)
|
||||||
{
|
{
|
||||||
auto Set = [this, choice](auto& setting, auto& value) {
|
auto Set = [this](auto& setting, auto& value) {
|
||||||
if (m_layer != nullptr)
|
if (m_layer != nullptr)
|
||||||
{
|
{
|
||||||
m_layer->Set(setting.GetLocation(), value);
|
m_layer->Set(setting.GetLocation(), value);
|
||||||
|
@ -36,7 +36,7 @@ AdvancedWidget::AdvancedWidget(GraphicsWindow* parent)
|
|||||||
OnEmulationStateChanged(state != Core::State::Uninitialized);
|
OnEmulationStateChanged(state != Core::State::Uninitialized);
|
||||||
});
|
});
|
||||||
connect(m_manual_texture_sampling, &QCheckBox::toggled,
|
connect(m_manual_texture_sampling, &QCheckBox::toggled,
|
||||||
[this, parent] { emit parent->UseFastTextureSamplingChanged(); });
|
[parent] { emit parent->UseFastTextureSamplingChanged(); });
|
||||||
|
|
||||||
OnBackendChanged();
|
OnBackendChanged();
|
||||||
OnEmulationStateChanged(!Core::IsUninitialized(Core::System::GetInstance()));
|
OnEmulationStateChanged(!Core::IsUninitialized(Core::System::GetInstance()));
|
||||||
@ -262,7 +262,7 @@ void AdvancedWidget::ConnectWidgets()
|
|||||||
m_dump_base_textures->setEnabled(checked);
|
m_dump_base_textures->setEnabled(checked);
|
||||||
});
|
});
|
||||||
connect(m_enable_graphics_mods, &QCheckBox::toggled, this,
|
connect(m_enable_graphics_mods, &QCheckBox::toggled, this,
|
||||||
[this](bool checked) { emit Settings::Instance().EnableGfxModsChanged(checked); });
|
[](bool checked) { emit Settings::Instance().EnableGfxModsChanged(checked); });
|
||||||
#if defined(HAVE_FFMPEG)
|
#if defined(HAVE_FFMPEG)
|
||||||
connect(m_dump_use_lossless, &QCheckBox::toggled, this,
|
connect(m_dump_use_lossless, &QCheckBox::toggled, this,
|
||||||
[this](bool checked) { m_dump_bitrate->setEnabled(!checked); });
|
[this](bool checked) { m_dump_bitrate->setEnabled(!checked); });
|
||||||
|
@ -24,7 +24,7 @@ protected:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetUp()
|
void SetUp() override
|
||||||
{
|
{
|
||||||
if (m_parent_directory.empty())
|
if (m_parent_directory.empty())
|
||||||
{
|
{
|
||||||
|
@ -44,7 +44,7 @@ TEST(TMDReader, Validity)
|
|||||||
class TMDReaderTest : public ::testing::Test
|
class TMDReaderTest : public ::testing::Test
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
virtual void SetUp() = 0;
|
void SetUp() override = 0;
|
||||||
|
|
||||||
// Common tests.
|
// Common tests.
|
||||||
void TestGeneralInfo();
|
void TestGeneralInfo();
|
||||||
|
@ -41,7 +41,7 @@ protected:
|
|||||||
m_fs.reset();
|
m_fs.reset();
|
||||||
File::DeleteDirRecursively(m_profile_path);
|
File::DeleteDirRecursively(m_profile_path);
|
||||||
}
|
}
|
||||||
void SetUp()
|
void SetUp() override
|
||||||
{
|
{
|
||||||
if (UserDirectoryCreationFailed())
|
if (UserDirectoryCreationFailed())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user