C++: Reduce FileName indirection

Change-Id: Ib7dfa4d3984f807985b7ce2ee0e58fb0565adc06
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2015-02-01 19:19:32 +02:00
committed by Orgad Shaneh
parent 156228aeb8
commit 27a3e1c0b4
4 changed files with 4 additions and 4 deletions

View File

@@ -550,7 +550,7 @@ TextEditorWidget::Link FollowSymbolUnderCursor::findLink(const QTextCursor &curs
}
// Now we prefer the doc from the snapshot with macros expanded.
Document::Ptr doc = snapshot.document(m_widget->textDocument()->filePath().toString());
Document::Ptr doc = snapshot.document(m_widget->textDocument()->filePath());
if (!doc) {
doc = documentFromSemanticInfo;
if (!doc)