[Bug 73116] Kdevelop crashes when typing a dot at the end of a comment
Jens Dagerbo
jens.dagerbo at swipnet.se
Wed Jan 21 13:19:03 UTC 2004
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=73116
jens.dagerbo at swipnet.se changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From jens.dagerbo at swipnet.se 2004-01-21 13:17 -------
Subject: kdevelop/languages/cpp
CVS commit by dagerbo:
Quick fix for bug 73116.
The parser gets confused sometimes, better have a sanity check.
CCMAIL: 73116-done at bugs.kde.org
M +7 -1 cppcodecompletion.cpp 1.142
--- kdevelop/languages/cpp/cppcodecompletion.cpp #1.141:1.142
@@ -789,5 +789,11 @@ CppCodeCompletion::completeText( )
QStringList nested;
- QPtrList<ClassOrNamespaceNameAST> l = name->classOrNamespaceNameList();
+
+ QPtrList<ClassOrNamespaceNameAST> l;
+ if ( name )
+ {
+ l = name->classOrNamespaceNameList();
+ }
+// QPtrList<ClassOrNamespaceNameAST> l = name->classOrNamespaceNameList();
QPtrListIterator<ClassOrNamespaceNameAST> nameIt( l );
while( nameIt.current() ){
More information about the KDevelop-devel
mailing list