summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <eb@emlix.com>2016-10-11 11:04:08 (GMT)
committerRolf Eike Beer <kde@opensource.sf-tec.de>2016-10-11 16:16:46 (GMT)
commitdb3f6c49e6830de3726415a7ff02bd50dca54171 (patch)
tree48caf6bbfbe7698014c4c6897e7570706de8c280
parentb726585ae2efe39b4497842638062e64f2d6046c (diff)
remove checks for invalid index in KGpgExpandableNode::getChild()
This must only be called with a valid index, so do not hide any misuses but let them trigger the assertions in the underlying QList code.
-rw-r--r--core/KGpgExpandableNode.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/KGpgExpandableNode.cpp b/core/KGpgExpandableNode.cpp
index 084dde2..8bfee5d 100644
--- a/core/KGpgExpandableNode.cpp
+++ b/core/KGpgExpandableNode.cpp
@@ -38,8 +38,6 @@ KGpgExpandableNode::~KGpgExpandableNode()
KGpgNode *
KGpgExpandableNode::getChild(const int index) const
{
- if ((index < 0) || (index > children.count()))
- return Q_NULLPTR;
return children.at(index);
}