feat: Add refactor editor widget

This commit is contained in:
Petr Mironychev
2025-11-22 13:00:00 +01:00
parent 07de415346
commit 0aed886e31
11 changed files with 1420 additions and 7 deletions

View File

@ -226,9 +226,12 @@ QStringList ExecuteTerminalCommandTool::getAllowedCommands() const
return QStringList();
}
QStringList commands = commandsStr.split(',', Qt::SkipEmptyParts);
for (QString &cmd : commands) {
cmd = cmd.trimmed();
const QStringList rawCommands = commandsStr.split(',', Qt::SkipEmptyParts);
QStringList commands;
commands.reserve(rawCommands.size());
for (const QString &cmd : rawCommands) {
commands.append(cmd.trimmed());
}
return commands;