mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-28 12:17:04 -05:00
Fix warnings
This commit is contained in:
@@ -29,7 +29,8 @@ AdvSceneSwitcher *AdvSceneSwitcher::window = nullptr;
|
||||
* Create the Advanced Scene Switcher settings window
|
||||
******************************************************************************/
|
||||
AdvSceneSwitcher::AdvSceneSwitcher(QWidget *parent)
|
||||
: QDialog(parent), ui(new Ui_AdvSceneSwitcher)
|
||||
: QDialog(parent),
|
||||
ui(new Ui_AdvSceneSwitcher)
|
||||
{
|
||||
switcher->settingsWindowOpened = true;
|
||||
ui->setupUi(this);
|
||||
@@ -258,7 +259,8 @@ void SwitcherData::Thread()
|
||||
}
|
||||
}
|
||||
|
||||
vblog(LOG_INFO, "try to sleep for %ld", duration.count());
|
||||
vblog(LOG_INFO, "try to sleep for %ld",
|
||||
(long int)duration.count());
|
||||
SetWaitScene();
|
||||
cv.wait_for(lock, duration);
|
||||
|
||||
@@ -285,7 +287,7 @@ void SwitcherData::Thread()
|
||||
if (linger) {
|
||||
duration = std::chrono::milliseconds(linger);
|
||||
vblog(LOG_INFO, "sleep for %ld before switching scene",
|
||||
duration.count());
|
||||
(long int)duration.count());
|
||||
|
||||
SetWaitScene();
|
||||
cv.wait_for(lock, duration);
|
||||
|
||||
@@ -23,7 +23,7 @@ typedef enum {
|
||||
struct MediaSwitch : SceneSwitcherEntry {
|
||||
static bool pause;
|
||||
OBSWeakSource source = nullptr;
|
||||
obs_media_state state = OBS_MEDIA_STATE_NONE;
|
||||
int state = OBS_MEDIA_STATE_NONE;
|
||||
bool anyState = false;
|
||||
time_restriction restriction = TIME_RESTRICTION_NONE;
|
||||
int64_t time = 0;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user