From 4e37241d05cfd9a3e376cf6516bc7370c68e520f Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Sun, 4 Feb 2024 15:25:27 +0100 Subject: [PATCH] Remove unused variables --- plugins/base/macro-condition-replay-buffer.cpp | 5 ++--- tests/mocks/obs-data.cpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/base/macro-condition-replay-buffer.cpp b/plugins/base/macro-condition-replay-buffer.cpp index 0b92ab1dd..e6e5d2a3e 100644 --- a/plugins/base/macro-condition-replay-buffer.cpp +++ b/plugins/base/macro-condition-replay-buffer.cpp @@ -22,8 +22,6 @@ const static std::map "AdvSceneSwitcher.condition.replay.state.saved"}, }; -static bool replayBufferSaved = false; - static std::chrono::high_resolution_clock::time_point replayBufferSaveTime{}; static bool setupReplayBufferEventHandler(); static bool replayBufferEventHandlerIsSetup = setupReplayBufferEventHandler(); @@ -94,7 +92,8 @@ static inline void populateStateSelection(QComboBox *list) MacroConditionReplayBufferEdit::MacroConditionReplayBufferEdit( QWidget *parent, std::shared_ptr entryData) - : QWidget(parent), _state(new QComboBox()) + : QWidget(parent), + _state(new QComboBox()) { QWidget::connect(_state, SIGNAL(currentIndexChanged(int)), this, SLOT(StateChanged(int))); diff --git a/tests/mocks/obs-data.cpp b/tests/mocks/obs-data.cpp index ebfb406f0..922dbafcb 100644 --- a/tests/mocks/obs-data.cpp +++ b/tests/mocks/obs-data.cpp @@ -222,7 +222,7 @@ long long obs_data_get_autoselect_int(obs_data_t *data, const char *name) double obs_data_get_autoselect_double(obs_data_t *data, const char *name) { - return 0, 0; + return 0.0; } bool obs_data_get_autoselect_bool(obs_data_t *data, const char *name)