]> git.sesse.net Git - vlc/commitdiff
ebml: Constify getters.
authorHugo Beauzée-Luyssen <beauze.h@gmail.com>
Mon, 17 Oct 2011 14:54:37 +0000 (16:54 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 18 Oct 2011 10:05:31 +0000 (12:05 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/mkv/Ebml_parser.cpp
modules/demux/mkv/Ebml_parser.hpp

index cd81d8de9f14c21e21762372eab3610bb702adcf..b7c4d52b2363afd3d80ad5028e7b30e5408cf47f 100644 (file)
@@ -116,7 +116,7 @@ void EbmlParser::Keep( void )
     mb_keep = true;
 }
 
-int EbmlParser::GetLevel( void )
+int EbmlParser::GetLevel( void ) const
 {
     return mi_user_level;
 }
@@ -193,7 +193,7 @@ EbmlElement *EbmlParser::Get( void )
     return m_el[mi_level];
 }
 
-bool EbmlParser::IsTopPresent( EbmlElement *el )
+bool EbmlParser::IsTopPresent( EbmlElement *el ) const
 {
     for( int i = 0; i < mi_level; i++ )
     {
index 7bbaf26a642326b517e49f2db14ad31a1a1b8195..cc72ed4e114fff668e317298d1bd1e95aaf6fbe4 100644 (file)
@@ -43,10 +43,10 @@ class EbmlParser
     void        Keep( void );
     EbmlElement *UnGet( uint64 i_block_pos, uint64 i_cluster_pos );
 
-    int  GetLevel( void );
+    int  GetLevel( void ) const;
 
     /* Is the provided element presents in our upper elements */
-    bool IsTopPresent( EbmlElement * );
+    bool IsTopPresent( EbmlElement * ) const;
 
   private:
     EbmlStream  *m_es;