From: Steve Lhomme Date: Thu, 18 Mar 2010 17:07:58 +0000 (+0000) Subject: fix the iterator use in the copy constructors X-Git-Tag: release-0.9.0~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a8c8cc66a01e2b3236d888485f169f308a5e650;p=libmatroska 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 --- 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; } }