[Qt-creator] completion crash for define
Marek Jasovsky
jasovsky.marek at gmail.com
Sun Mar 8 15:33:01 CET 2009
Hi Roberto
as I mentioned today to Thorbjorn, there is one nasty crash if I try to
autocomplete CPLUSPLUS_BEGIN_NAMESPACE at the beginning of the line.
when attaching, code stops in qDebug() shown below with symbol pointer still
having value of zero.
I suppose this is due to the fact, that I am inserting the define directive
at the beginning of the line where there's no valid symbol to start with...
thanks a lot
Marek
void CppCodeCompletion::complete(const TextEditor::CompletionItem &item)
{
Symbol *symbol = 0;
if (item.m_data.isValid())
symbol = item.m_data.value<Symbol *>();
qDebug() << "*** complete symbol:" << symbol->fileName() <<
symbol->line(); // crash here
.....
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090308/4c3945b4/attachment.html
More information about the Qt-creator-old
mailing list