Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
381798ad
Commit
381798ad
authored
Jun 02, 2009
by
Roberto Raggi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store the original C++ Document when searching.
parent
47b620e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/plugins/cpptools/cpptoolsplugin.cpp
src/plugins/cpptools/cpptoolsplugin.cpp
+2
-1
No files found.
src/plugins/cpptools/cpptoolsplugin.cpp
View file @
381798ad
...
...
@@ -60,7 +60,6 @@
#include <AST.h>
#include <ASTVisitor.h>
#include <TranslationUnit.h>
#include <PrettyPrinter.h>
#include <cplusplus/PreprocessorEnvironment.h>
#include <cplusplus/pp.h>
...
...
@@ -140,6 +139,7 @@ class FindClass: protected ASTVisitor
QFutureInterface
<
Core
::
Utils
::
FileSearchResult
>
&
_future
;
Document
::
Ptr
_doc
;
Snapshot
_snapshot
;
Document
::
Ptr
_thisDocument
;
QByteArray
_source
;
QString
_text
;
...
...
@@ -152,6 +152,7 @@ public:
_doc
(
doc
),
_snapshot
(
snapshot
)
{
_thisDocument
=
_snapshot
.
value
(
_doc
->
fileName
());
}
void
operator
()(
AST
*
ast
,
const
QByteArray
&
source
,
const
QString
&
text
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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