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

@@ -41,7 +41,7 @@ bool MacroActionWebsocket::PerformAction()
return true;
}
void MacroActionWebsocket::LogAction()
void MacroActionWebsocket::LogAction() const
{
switch (_type) {
case MacroActionWebsocket::Type::REQUEST:
@@ -57,7 +57,7 @@ void MacroActionWebsocket::LogAction()
}
}
bool MacroActionWebsocket::Save(obs_data_t *obj)
bool MacroActionWebsocket::Save(obs_data_t *obj) const
{
MacroAction::Save(obj);
obs_data_set_int(obj, "type", static_cast<int>(_type));
@@ -75,7 +75,7 @@ bool MacroActionWebsocket::Load(obs_data_t *obj)
return true;
}
std::string MacroActionWebsocket::GetShortDesc()
std::string MacroActionWebsocket::GetShortDesc() const
{
if (_type == Type::REQUEST) {
return _connection;