From d2bd092b47c8d4f81855228d158cc1b81ead8c00 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 9 Nov 2009 13:53:28 +0100 Subject: Code model: Fix Windows issues (duplicate matches). Ensure the code model receives file names with clean paths ('/') and fix paths in the relevant places of the code model. Pass on clean paths from Cpp reference find and display them correctly in the search window tooltip. Reviewed-by: Roberto Raggi --- src/libs/cplusplus/FindUsages.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libs/cplusplus/FindUsages.cpp') diff --git a/src/libs/cplusplus/FindUsages.cpp b/src/libs/cplusplus/FindUsages.cpp index d6ecca8cbf..b74e85995f 100644 --- a/src/libs/cplusplus/FindUsages.cpp +++ b/src/libs/cplusplus/FindUsages.cpp @@ -121,8 +121,7 @@ void FindUsages::reportResult(unsigned tokenIndex) const int len = tk.f.length; if (_future) { - const QString path = QDir::toNativeSeparators(_doc->fileName()); - _future->reportResult(Usage(path, line, lineText, col, len)); + _future->reportResult(Usage(_doc->fileName(), line, lineText, col, len)); } _references.append(tokenIndex); -- cgit v1.2.1