[matroska] r1111 - in trunk/libebml: ebml src

[email protected]
Newsgroups gmane.comp.multimedia.matroska.cvs
Message-ID <[email protected]>
Author: robux4
Date: 2005-03-27 17:55:27 +0400 (Sun, 27 Mar 2005)
New Revision: 1111

Modified:
   trunk/libebml/ebml/EbmlBinary.h
   trunk/libebml/src/EbmlBinary.cpp
Log:
libebml: allow comparison of const elements too

Modified: trunk/libebml/ebml/EbmlBinary.h
===================================================================
--- trunk/libebml/ebml/EbmlBinary.h	2005-03-26 00:33:27 UTC (rev 1110)
+++ trunk/libebml/ebml/EbmlBinary.h	2005-03-27 13:55:27 UTC (rev 1111)
@@ -91,6 +91,7 @@
 		}
 
 		bool operator==(const EbmlBinary & ElementToCompare);
+		bool operator==(const EbmlBinary & ElementToCompare) const;
 
 	protected:
 		binary *Data; // the binary data inside the element

Modified: trunk/libebml/src/EbmlBinary.cpp
===================================================================
--- trunk/libebml/src/EbmlBinary.cpp	2005-03-26 00:33:27 UTC (rev 1110)
+++ trunk/libebml/src/EbmlBinary.cpp	2005-03-27 13:55:27 UTC (rev 1111)
@@ -98,4 +98,9 @@
 	return ((Size == ElementToCompare.Size) && !memcmp(Data, ElementToCompare.Data, Size));
 }
 
+bool EbmlBinary::operator==(const EbmlBinary & ElementToCompare) const
+{
+	return ((Size == ElementToCompare.Size) && !memcmp(Data, ElementToCompare.Data, Size));
+}
+
 END_LIBEBML_NAMESPACE
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.