UI: Cleanup virtual camera config dialog code

Remove unneeded headers and "using namespace".
master
tytan652 2022-08-10 10:46:33 +02:00 committed by Jim
parent a0e50b18b1
commit 0e61a57bba
1 changed files with 4 additions and 8 deletions

View File

@ -1,13 +1,9 @@
#include "window-basic-vcam-config.hpp" #include "window-basic-vcam-config.hpp"
#include "window-basic-main.hpp" #include "window-basic-main.hpp"
#include "qt-wrappers.hpp" #include "qt-wrappers.hpp"
#include "remote-text.hpp"
#include <util/util.hpp> #include <util/util.hpp>
#include <util/platform.h> #include <util/platform.h>
#include <platform.hpp>
#include <mutex>
using namespace std;
enum class VCamOutputType { enum class VCamOutputType {
Internal, Internal,
@ -23,8 +19,8 @@ enum class VCamInternalType {
struct VCamConfig { struct VCamConfig {
VCamOutputType type = VCamOutputType::Internal; VCamOutputType type = VCamOutputType::Internal;
VCamInternalType internal = VCamInternalType::Default; VCamInternalType internal = VCamInternalType::Default;
string scene; std::string scene;
string source; std::string source;
}; };
static VCamConfig *vCamConfig = nullptr; static VCamConfig *vCamConfig = nullptr;
@ -80,7 +76,7 @@ void OBSBasicVCamConfig::OutputTypeChanged(int type)
case VCamOutputType::Source: { case VCamOutputType::Source: {
// Sources in alphabetical order // Sources in alphabetical order
vector<string> sources; std::vector<std::string> sources;
auto AddSource = [&](obs_source_t *source) { auto AddSource = [&](obs_source_t *source) {
auto name = obs_source_get_name(source); auto name = obs_source_get_name(source);
auto flags = obs_source_get_output_flags(source); auto flags = obs_source_get_output_flags(source);