Qt: Remove unnecessary <iostream> includes

<iostream> injects a static constructor into the translation units that
it's included into. This is trivially avoidable in these cases.
This commit is contained in:
Lioncash 2018-02-21 16:30:08 -05:00
parent 619f98b97b
commit abfaff8ca9
3 changed files with 2 additions and 10 deletions

View File

@ -10,8 +10,6 @@
#include <QPushButton>
#include <QStyle>
#include <iostream>
#include "Core/ConfigManager.h"
#include "Core/Core.h"
#include "DolphinQt2/Settings.h"
@ -23,10 +21,8 @@ CheatWarningWidget::CheatWarningWidget(const std::string& game_id) : m_game_id(g
connect(&Settings::Instance(), &Settings::EnableCheatsChanged,
[this] { Update(Core::IsRunning()); });
connect(&Settings::Instance(), &Settings::EmulationStateChanged, [this](Core::State state) {
std::cout << (state == Core::State::Running) << std::endl;
Update(state == Core::State::Running);
});
connect(&Settings::Instance(), &Settings::EmulationStateChanged,
[this](Core::State state) { Update(state == Core::State::Running); });
Update(Core::IsRunning());
}

View File

@ -9,8 +9,6 @@
#include <QString>
#include <QTimer>
#include <iostream>
#include "DolphinQt2/Config/Mapping/MappingButton.h"
#include "Common/Thread.h"

View File

@ -10,8 +10,6 @@
#include <QPainter>
#include <QTimer>
#include <iostream>
#include "InputCommon/ControlReference/ControlReference.h"
#include "InputCommon/ControllerEmu/Control/Control.h"
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"