OSDN Git Service
(root)
/
qt-creator-jp
/
qt-creator-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07cac21
)
QmlOutline: Make QTC_ASSERT more meaningful
author
Kai Koehne
<kai.koehne@nokia.com>
Thu, 16 Dec 2010 12:20:58 +0000
(13:20 +0100)
committer
Kai Koehne
<kai.koehne@nokia.com>
Thu, 16 Dec 2010 12:22:19 +0000
(13:22 +0100)
Split up QTC_ASSERT to maybe find out why, from times to times,
the original assert fails.
src/plugins/qmljseditor/qmloutlinemodel.cpp
patch
|
blob
|
history
diff --git
a/src/plugins/qmljseditor/qmloutlinemodel.cpp
b/src/plugins/qmljseditor/qmloutlinemodel.cpp
index
59b16aa
..
5e25a81
100644
(file)
--- a/
src/plugins/qmljseditor/qmloutlinemodel.cpp
+++ b/
src/plugins/qmljseditor/qmloutlinemodel.cpp
@@
-526,6
+526,7
@@
AST::Node *QmlOutlineModel::nodeForIndex(const QModelIndex &index) const
QTC_ASSERT(index.isValid() && (index.model() == this), return 0);
if (index.isValid()) {
QmlOutlineItem *item = static_cast<QmlOutlineItem*>(itemFromIndex(index));
+ QTC_ASSERT(item, return 0);
QTC_ASSERT(m_itemToNode.contains(item), return 0);
return m_itemToNode.value(item);
}