summaryrefslogtreecommitdiffstats
path: root/sigmodr/tree/TreeModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmodr/tree/TreeModel.cpp')
-rw-r--r--sigmodr/tree/TreeModel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/sigmodr/tree/TreeModel.cpp b/sigmodr/tree/TreeModel.cpp
index 36eb5055..ff7426bd 100644
--- a/sigmodr/tree/TreeModel.cpp
+++ b/sigmodr/tree/TreeModel.cpp
@@ -95,8 +95,7 @@ bool TreeModel::hasChildren(const QModelIndex& parent) const
{
if (!parent.isValid())
return false;
- TreeItem* item = static_cast<TreeItem*>(parent.internalPointer());
- return (0 < item->childCount());
+ return (0 < static_cast<TreeItem*>(parent.internalPointer())->childCount());
}
int TreeModel::rowCount(const QModelIndex& parent) const