mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-07 09:05:57 -05:00
Add const qualifier to various functions
This commit is contained in:
@@ -49,7 +49,7 @@ bool MacroActionMacro::PerformAction()
|
||||
return true;
|
||||
}
|
||||
|
||||
void MacroActionMacro::LogAction()
|
||||
void MacroActionMacro::LogAction() const
|
||||
{
|
||||
if (!_macro.get()) {
|
||||
return;
|
||||
@@ -77,7 +77,7 @@ void MacroActionMacro::LogAction()
|
||||
}
|
||||
}
|
||||
|
||||
bool MacroActionMacro::Save(obs_data_t *obj)
|
||||
bool MacroActionMacro::Save(obs_data_t *obj) const
|
||||
{
|
||||
MacroAction::Save(obj);
|
||||
_macro.Save(obj);
|
||||
@@ -94,7 +94,7 @@ bool MacroActionMacro::Load(obs_data_t *obj)
|
||||
return true;
|
||||
}
|
||||
|
||||
std::string MacroActionMacro::GetShortDesc()
|
||||
std::string MacroActionMacro::GetShortDesc() const
|
||||
{
|
||||
if (_macro.get()) {
|
||||
return _macro->Name();
|
||||
|
||||
Reference in New Issue
Block a user