From 1a8c8cc66a01e2b3236d888485f169f308a5e650 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Thu, 18 Mar 2010 17:07:58 +0000 Subject: [PATCH] fix the iterator use in the copy constructors git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libmatroska@38 a6f86f6d-0131-4f8e-9e7b-e335508773d5 --- src/KaxCluster.cpp | 1 + src/KaxSegment.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/KaxCluster.cpp b/src/KaxCluster.cpp index 394ff53..4524739 100644 --- a/src/KaxCluster.cpp +++ b/src/KaxCluster.cpp @@ -87,6 +87,7 @@ KaxCluster::KaxCluster(const KaxCluster & ElementToClone) static_cast(*Itr)->SetParent(*this); #endif // MATROSKA_VERSION } + ++Itr; } } diff --git a/src/KaxSegment.cpp b/src/KaxSegment.cpp index 1262118..5a56fc7 100644 --- a/src/KaxSegment.cpp +++ b/src/KaxSegment.cpp @@ -89,6 +89,7 @@ KaxSegment::KaxSegment(const KaxSegment & ElementToClone) if (EbmlId(**Itr) == EBML_ID(KaxCluster)) { static_cast(*Itr)->SetParent(*this); } + ++Itr; } }