Move functions

This commit is contained in:
WarmUpTill
2025-11-30 19:39:21 +01:00
committed by WarmUpTill
parent 03f67534c7
commit ce399cc647
4 changed files with 33 additions and 32 deletions

View File

@@ -1255,33 +1255,6 @@ void StopAllMacros()
}
}
Macro *GetMacroByName(const char *name)
{
for (const auto &m : GetTopLevelMacros()) {
if (m->Name() == name) {
return m.get();
}
}
return nullptr;
}
Macro *GetMacroByQString(const QString &name)
{
return GetMacroByName(name.toUtf8().constData());
}
std::weak_ptr<Macro> GetWeakMacroByName(const char *name)
{
for (const auto &m : GetTopLevelMacros()) {
if (m->Name() == name) {
return m;
}
}
return {};
}
void InvalidateMacroTempVarValues()
{
for (const auto &m : GetTopLevelMacros()) {