C++: Use Utils::FileName for Usage::path

Change-Id: I1d22333ad60d229202db5d372d00019b5870e60f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Orgad Shaneh
2017-04-27 10:54:30 +03:00
committed by Orgad Shaneh
parent 2f7384dd27
commit edbaea4f60
3 changed files with 6 additions and 5 deletions

View File

@@ -469,7 +469,7 @@ static void displayResults(SearchResult *search, QFutureWatcher<Usage> *watcher,
{
for (int index = first; index != last; ++index) {
Usage result = watcher->future().resultAt(index);
search->addResult(result.path,
search->addResult(result.path.toString(),
result.line,
result.lineText,
result.col,
@@ -536,7 +536,7 @@ restart_search:
if (macro.name() == useMacro.name()) {
unsigned column;
const QString &lineSource = matchingLine(use.bytesBegin(), source, &column);
usages.append(Usage(fileName.toString(), lineSource, use.beginLine(), column,
usages.append(Usage(fileName, lineSource, use.beginLine(), column,
useMacro.nameToQString().size()));
}
}