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
Marco Bubke
flatpak-qt-creator
Commits
588bc1f7
Commit
588bc1f7
authored
Sep 29, 2010
by
Erik Verbruggen
Browse files
CPPEditor: Fixed invalid location in refactoring action.
Reviewed-by: Roberto Raggi
parent
87250689
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppinsertdecldef.cpp
View file @
588bc1f7
...
...
@@ -81,7 +81,9 @@ public:
void
performChanges
(
CppRefactoringFile
*
,
CppRefactoringChanges
*
refactoring
)
{
InsertionPointLocator
locator
(
state
().
snapshot
());
Snapshot
snapshot
=
state
().
snapshot
();
snapshot
.
insert
(
refactoring
->
file
(
m_targetFileName
).
cppDocument
());
InsertionPointLocator
locator
(
snapshot
);
const
InsertionLocation
loc
=
locator
.
methodDeclarationInClass
(
m_targetFileName
,
m_targetSymbol
,
m_xsSpec
);
Q_ASSERT
(
loc
.
isValid
());
...
...
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