Branch 'kolab/integration/4.13.0' - korganizer/views
Christian Mollekopf
mollekopf at kolabsys.com
Wed Aug 20 12:03:40 CEST 2014
korganizer/views/collectionview/reparentingmodel.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 9a755da9afeb5762a0f668741b0650817ec89a28
Author: Christian Mollekopf <chrigi_1 at fastmail.fm>
Date: Wed Aug 20 12:03:04 2014 +0200
ReparentingModel: Fixed iterator
The code before was bogus.
diff --git a/korganizer/views/collectionview/reparentingmodel.cpp b/korganizer/views/collectionview/reparentingmodel.cpp
index f21485b..9ab2611 100644
--- a/korganizer/views/collectionview/reparentingmodel.cpp
+++ b/korganizer/views/collectionview/reparentingmodel.cpp
@@ -66,7 +66,7 @@ void ReparentingModel::Node::reparent(ReparentingModel::Node *node)
Node::Ptr nodePtr;
if (node->parent) {
//Reparent node
- Ptr *it = node->parent->children.begin();
+ QVector<Node::Ptr>::iterator it = node->parent->children.begin();
for (;it != node->parent->children.end(); it++) {
if (it->data() == node) {
//Reuse smart pointer
More information about the commits
mailing list