mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-07 17:16:00 -05:00
Add const qualifier to various functions
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user