Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
05f7870a
Commit
05f7870a
authored
Sep 29, 2009
by
Roberto Raggi
Browse files
Cleanup
parent
86e21bc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cpptools/cppfindreferences.cpp
View file @
05f7870a
...
...
@@ -332,19 +332,19 @@ static void find_helper(QFutureInterface<Core::Utils::FileSearchResult> &future,
Identifier
*
symbolId
=
symbol
->
identifier
();
Q_ASSERT
(
symbolId
!=
0
);
const
QString
fileNam
e
=
QString
::
fromUtf8
(
symbol
->
fileName
(),
symbol
->
fileNameLength
());
const
QString
sourceFil
e
=
QString
::
fromUtf8
(
symbol
->
fileName
(),
symbol
->
fileNameLength
());
QStringList
files
(
fileNam
e
);
files
+=
snapshot
.
dependsOn
(
fileNam
e
);
QStringList
files
(
sourceFil
e
);
files
+=
snapshot
.
dependsOn
(
sourceFil
e
);
qDebug
()
<<
"done in:"
<<
tm
.
elapsed
()
<<
"number of files to parse:"
<<
files
.
size
();
future
.
setProgressRange
(
0
,
files
.
size
());
for
(
int
i
=
0
;
i
<
files
.
size
();
++
i
)
{
const
QString
&
f
n
=
files
.
at
(
i
);
future
.
setProgressValueAndText
(
i
,
QFileInfo
(
f
n
).
fileName
());
const
QString
&
f
ileName
=
files
.
at
(
i
);
future
.
setProgressValueAndText
(
i
,
QFileInfo
(
f
ileName
).
fileName
());
Document
::
Ptr
previousDoc
=
snapshot
.
value
(
f
n
);
Document
::
Ptr
previousDoc
=
snapshot
.
value
(
f
ileName
);
if
(
previousDoc
)
{
Control
*
control
=
previousDoc
->
control
();
Identifier
*
id
=
control
->
findIdentifier
(
symbolId
->
chars
(),
symbolId
->
size
());
...
...
@@ -352,10 +352,6 @@ static void find_helper(QFutureInterface<Core::Utils::FileSearchResult> &future,
continue
;
// skip this document, it's not using symbolId.
}
QFile
f
(
fn
);
if
(
!
f
.
open
(
QFile
::
ReadOnly
))
continue
;
QByteArray
source
;
if
(
wl
.
contains
(
fileName
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment