From c331b9b443ac9e420cfb9c5a7cd2feee2cb074a5 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Mon, 15 Mar 2010 16:20:08 +0000 Subject: [PATCH] use the new CreateElement() virtual method instead than doing it through the Generic() call git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@19 a6f86f6d-0131-4f8e-9e7b-e335508773d5 --- src/EbmlMaster.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EbmlMaster.cpp b/src/EbmlMaster.cpp index b5db339..27dab9f 100644 --- a/src/EbmlMaster.cpp +++ b/src/EbmlMaster.cpp @@ -335,9 +335,9 @@ EbmlElement *EbmlMaster::FindNextElt(const EbmlElement & PastElt, bool bCreateIf if (Index != ElementList.size()) return ElementList[Index]; - if (bCreateIfNull && PastElt.Generic().Create != NULL) { + if (bCreateIfNull) { // add the element - EbmlElement *NewElt = &(PastElt.Generic().Create()); + EbmlElement *NewElt = &(PastElt.CreateElement()); if (NewElt == NULL) return NULL;