CppEditor: Avoid a FilePath <-> QString roundtrip

Change-Id: Ia7860e04090aee8b7fae18cdc5f2d85880f29d69
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2022-08-10 11:13:32 +02:00
parent 0197a62fcf
commit 8953d68f9a
4 changed files with 6 additions and 8 deletions

View File

@@ -1165,9 +1165,7 @@ bool CppEditorWidget::isOldStyleSignalOrSlot() const
const QString content = textDocument()->plainText();
return CppEditor::CppModelManager::instance()
->getSignalSlotType(textDocument()->filePath().toString(),
content.toUtf8(),
tc.position())
->getSignalSlotType(textDocument()->filePath(), content.toUtf8(), tc.position())
== CppEditor::SignalSlotType::OldStyleSignal;
}