Fix warnings

This commit is contained in:
WarmUpTill
2024-02-04 15:25:27 +01:00
committed by WarmUpTill
parent ce262f0dad
commit 84e01c0c9c
10 changed files with 30 additions and 23 deletions

View File

@@ -32,8 +32,8 @@ bool AdvSceneSwitcher::AddNewMacro(std::shared_ptr<Macro> &res,
QString fmt;
int i = 1;
if (format.empty()) {
fmt = {obs_module_text(
"AdvSceneSwitcher.macroTab.defaultname")};
fmt = QString(obs_module_text(
"AdvSceneSwitcher.macroTab.defaultname"));
} else {
fmt = QString::fromStdString(format);
i = 2;

View File

@@ -122,7 +122,8 @@ bool Macro::CeckMatch()
if (ms.count() >= perfLogThreshold) {
blog(LOG_WARNING,
"spent %ld ms in %s condition check of macro '%s'!",
ms.count(), c->GetId().c_str(), Name().c_str());
(long int)ms.count(), c->GetId().c_str(),
Name().c_str());
}
c->CheckDurationModifier(cond);