fix: Found and fix review mistakes

This commit is contained in:
Petr Mironychev
2026-07-02 22:26:07 +02:00
parent c070d65366
commit 35bbaa1af0
139 changed files with 2032 additions and 1573 deletions

View File

@@ -56,14 +56,14 @@ void ChangesManager::addChange(
}
}
QString ChangesManager::getRecentChangesContext(const TextEditor::TextDocument *currentDocument) const
QString ChangesManager::getRecentChangesContext(const QString &currentFilePath) const
{
QString context;
for (auto it = m_documentChanges.constBegin(); it != m_documentChanges.constEnd(); ++it) {
if (it.key() != currentDocument) {
for (const auto &change : it.value()) {
context += change.lineContent + "\n";
}
if (it.key() && it.key()->filePath().toFSPathString() == currentFilePath)
continue;
for (const auto &change : it.value()) {
context += change.lineContent + "\n";
}
}
return context;