mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-17 14:49:19 -05:00
Fix warnings
This commit is contained in:
@@ -129,12 +129,11 @@ static bool checkCondition(const std::shared_ptr<MacroCondition> &condition)
|
||||
const auto timeSpent = endTime - startTime;
|
||||
|
||||
if (timeSpent >= perfLogThreshold) {
|
||||
const long int ms =
|
||||
std::chrono::duration_cast<std::chrono::milliseconds>(
|
||||
timeSpent)
|
||||
.count();
|
||||
blog(LOG_WARNING,
|
||||
"spent %ld ms in %s condition check of macro '%s'!", ms,
|
||||
"spent %lld ms in %s condition check of macro '%s'!",
|
||||
(long long)std::chrono::duration_cast<
|
||||
std::chrono::milliseconds>(timeSpent)
|
||||
.count(),
|
||||
condition->GetId().c_str(),
|
||||
condition->GetMacro()->Name().c_str());
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
|
||||
} // namespace
|
||||
|
||||
static void handleShutdown(enum obs_frontend_event event, void *private_data)
|
||||
static void handleShutdown(enum obs_frontend_event event, void *)
|
||||
{
|
||||
if (event != OBS_FRONTEND_EVENT_EXIT) {
|
||||
return;
|
||||
|
||||
@@ -259,7 +259,7 @@ void MacroActionSourceInteractionEdit::AcceptRecorded(
|
||||
_stepList->SetSteps(_entryData->_steps);
|
||||
}
|
||||
|
||||
void MacroActionSourceInteractionEdit::showEvent(QShowEvent *event)
|
||||
void MacroActionSourceInteractionEdit::showEvent(QShowEvent *)
|
||||
{
|
||||
const QSignalBlocker b(this);
|
||||
UpdateEntryData();
|
||||
|
||||
@@ -710,7 +710,7 @@ void MacroConditionDateEdit::UpdateEntryData()
|
||||
SetWidgetStatus();
|
||||
}
|
||||
|
||||
void MacroConditionDateEdit::showEvent(QShowEvent *event)
|
||||
void MacroConditionDateEdit::showEvent(QShowEvent *)
|
||||
{
|
||||
const QSignalBlocker b(this);
|
||||
UpdateEntryData();
|
||||
|
||||
Reference in New Issue
Block a user