Skip to content
GitLab
Menu
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
0a9a67cf
Commit
0a9a67cf
authored
Feb 09, 2009
by
Roberto Raggi
Browse files
Fixes: Possible crash when completing constructors.
parent
0d1624d4
Changes
1
Show whitespace changes
Inline
Side-by-side
src/plugins/cpptools/cppcodecompletion.cpp
View file @
0a9a67cf
...
...
@@ -896,7 +896,10 @@ bool CppCodeCompletion::completeConstructors(Class *klass)
for
(
unsigned
i
=
0
;
i
<
klass
->
memberCount
();
++
i
)
{
Symbol
*
member
=
klass
->
memberAt
(
i
);
if
(
!
member
->
type
()
->
isFunctionType
())
FullySpecifiedType
memberTy
=
member
->
type
();
if
(
!
memberTy
)
continue
;
else
if
(
!
memberTy
->
isFunctionType
())
continue
;
else
if
(
!
member
->
identity
())
continue
;
...
...
@@ -930,8 +933,12 @@ bool CppCodeCompletion::completeQtMethod(CPlusPlus::FullySpecifiedType,
QSet
<
QString
>
signatures
;
foreach
(
TypeOfExpression
::
Result
p
,
results
)
{
FullySpecifiedType
ty
=
p
.
first
;
if
(
!
ty
)
continue
;
if
(
ReferenceType
*
refTy
=
ty
->
asReferenceType
())
ty
=
refTy
->
elementType
();
if
(
PointerType
*
ptrTy
=
ty
->
asPointerType
())
ty
=
ptrTy
->
elementType
();
else
...
...
Write
Preview
Supports
Markdown
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