Add const qualifier to various functions

This commit is contained in:
WarmUpTill
2022-12-11 01:59:19 +01:00
committed by WarmUpTill
parent a901f59f0f
commit b5ec9e7586
142 changed files with 380 additions and 381 deletions

View File

@@ -24,13 +24,13 @@ bool MacroActionSceneCollection::PerformAction()
return false;
}
void MacroActionSceneCollection::LogAction()
void MacroActionSceneCollection::LogAction() const
{
vblog(LOG_INFO, "set scene collection type to \"%s\"",
_sceneCollection.c_str());
}
bool MacroActionSceneCollection::Save(obs_data_t *obj)
bool MacroActionSceneCollection::Save(obs_data_t *obj) const
{
MacroAction::Save(obj);
obs_data_set_string(obj, "sceneCollection", _sceneCollection.c_str());
@@ -44,7 +44,7 @@ bool MacroActionSceneCollection::Load(obs_data_t *obj)
return true;
}
std::string MacroActionSceneCollection::GetShortDesc()
std::string MacroActionSceneCollection::GetShortDesc() const
{
return _sceneCollection;
}