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
9d63e4a6
Commit
9d63e4a6
authored
Jul 09, 2010
by
Roberto Raggi
Browse files
Try to resolve the type in the scope of the declaration.
parent
ba6b52ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/ResolveExpression.cpp
View file @
9d63e4a6
...
...
@@ -604,7 +604,12 @@ ClassOrNamespace *ResolveExpression::baseExpression(const QList<LookupItem> &bas
if
(
ClassOrNamespace
*
retBinding
=
findClass
(
ptrTy
->
elementType
(),
overload
->
scope
()))
return
retBinding
;
else
if
(
debug
)
{
else
if
(
scope
!=
overload
->
scope
())
{
if
(
ClassOrNamespace
*
retBinding
=
findClass
(
ptrTy
->
elementType
(),
scope
))
return
retBinding
;
}
if
(
debug
)
{
Overview
oo
;
qDebug
()
<<
"no class for:"
<<
oo
(
ptrTy
->
elementType
());
}
...
...
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