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
0504fdd0
Commit
0504fdd0
authored
Feb 09, 2009
by
Roberto Raggi
Browse files
Fixes: Another possible crash
parent
c842957a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cpptools/cppcodecompletion.cpp
View file @
0504fdd0
...
...
@@ -1119,7 +1119,8 @@ void CppCodeCompletion::complete(const TextEditor::CompletionItem &item)
// If the function doesn't return anything, automatically place the semicolon,
// unless we're doing a scope completion (then it might be function definition).
if
(
function
->
returnType
()
->
isVoidType
()
&&
m_completionOperator
!=
T_COLON_COLON
)
{
FullySpecifiedType
retTy
=
function
->
returnType
();
if
(
retTy
&&
retTy
->
isVoidType
()
&&
m_completionOperator
!=
T_COLON_COLON
)
{
toInsert
.
append
(
QLatin1Char
(
';'
));
}
}
...
...
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