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

@@ -64,7 +64,7 @@ bool MacroActionHttp::PerformAction()
return true;
}
void MacroActionHttp::LogAction()
void MacroActionHttp::LogAction() const
{
auto it = methods.find(_method);
if (it != methods.end()) {
@@ -77,7 +77,7 @@ void MacroActionHttp::LogAction()
}
}
bool MacroActionHttp::Save(obs_data_t *obj)
bool MacroActionHttp::Save(obs_data_t *obj) const
{
MacroAction::Save(obj);
obs_data_set_string(obj, "url", _url.c_str());
@@ -97,7 +97,7 @@ bool MacroActionHttp::Load(obs_data_t *obj)
return true;
}
std::string MacroActionHttp::GetShortDesc()
std::string MacroActionHttp::GetShortDesc() const
{
return _url;
}