]> granicus.if.org Git - libmatroska/commitdiff
fix the iterator use in the copy constructors
authorSteve Lhomme <slhomme@matroska.org>
Thu, 18 Mar 2010 17:07:58 +0000 (17:07 +0000)
committerSteve Lhomme <slhomme@matroska.org>
Thu, 18 Mar 2010 17:07:58 +0000 (17:07 +0000)
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libmatroska@38 a6f86f6d-0131-4f8e-9e7b-e335508773d5

src/KaxCluster.cpp
src/KaxSegment.cpp

index 394ff53c77ac609269ab1aba4ca4ea167f7e2c1a..452473929a7a3a8bfb97acfc1c2e70cd63a38778 100644 (file)
@@ -87,6 +87,7 @@ KaxCluster::KaxCluster(const KaxCluster & ElementToClone)
                        static_cast<KaxBlockVirtual *>(*Itr)->SetParent(*this);\r
 #endif // MATROSKA_VERSION\r
                }\r
+        ++Itr;\r
        }\r
 }\r
 \r
index 1262118bd00ccf49bf021c790aa383f6dc24e62a..5a56fc7988089c1cc314c0dccec7ba8ea37fd69f 100644 (file)
@@ -89,6 +89,7 @@ KaxSegment::KaxSegment(const KaxSegment & ElementToClone)
                if (EbmlId(**Itr) == EBML_ID(KaxCluster)) {\r
                        static_cast<KaxCluster *>(*Itr)->SetParent(*this);\r
                }\r
+        ++Itr;\r
        }\r
 }\r
 \r