mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
Embrace nullptr over NULL and 0
This commit is contained in:
parent
ae18aa0639
commit
a5d06fde4b
16 changed files with 36 additions and 33 deletions
|
@ -154,14 +154,14 @@ void ToolBar::UpdatePausePlayButtonState(const bool playing_state)
|
|||
{
|
||||
if (playing_state)
|
||||
{
|
||||
disconnect(m_pause_play_action, 0, 0, 0);
|
||||
disconnect(m_pause_play_action, nullptr, nullptr, nullptr);
|
||||
m_pause_play_action->setText(tr("Pause"));
|
||||
m_pause_play_action->setIcon(Resources::GetScaledThemeIcon("pause"));
|
||||
connect(m_pause_play_action, &QAction::triggered, this, &ToolBar::PausePressed);
|
||||
}
|
||||
else
|
||||
{
|
||||
disconnect(m_pause_play_action, 0, 0, 0);
|
||||
disconnect(m_pause_play_action, nullptr, nullptr, nullptr);
|
||||
m_pause_play_action->setText(tr("Play"));
|
||||
m_pause_play_action->setIcon(Resources::GetScaledThemeIcon("play"));
|
||||
connect(m_pause_play_action, &QAction::triggered, this, &ToolBar::PlayPressed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue