[vlc-commits] ebml: Constify getters.

Hugo Beauzée-Luyssen git at videolan.org
Tue Oct 18 12:26:54 CEST 2011


vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Mon Oct 17 16:54:37 2011 +0200| [5f34d687c6ce7e608682642f9f5b439af74a2826] | committer: Jean-Baptiste Kempf

ebml: Constify getters.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5f34d687c6ce7e608682642f9f5b439af74a2826
---

 modules/demux/mkv/Ebml_parser.cpp |    4 ++--
 modules/demux/mkv/Ebml_parser.hpp |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/demux/mkv/Ebml_parser.cpp b/modules/demux/mkv/Ebml_parser.cpp
index cd81d8d..b7c4d52 100644
--- a/modules/demux/mkv/Ebml_parser.cpp
+++ b/modules/demux/mkv/Ebml_parser.cpp
@@ -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++ )
     {
diff --git a/modules/demux/mkv/Ebml_parser.hpp b/modules/demux/mkv/Ebml_parser.hpp
index 7bbaf26..cc72ed4 100644
--- a/modules/demux/mkv/Ebml_parser.hpp
+++ b/modules/demux/mkv/Ebml_parser.hpp
@@ -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;



More information about the vlc-commits mailing list