]> git.sesse.net Git - vlc/commitdiff
mkv: constification
authorHugo Beauzée-Luyssen <beauze.h@gmail.com>
Mon, 17 Oct 2011 17:55:41 +0000 (19:55 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 18 Oct 2011 10:20:45 +0000 (12:20 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/mkv/mkv.hpp

index c299ae3a64e264f9be7f2687597be4c345308726..e1027a7cca818a36856c1cd8275b9cec0b6aa8fa 100644 (file)
@@ -127,7 +127,7 @@ void BlockDecode( demux_t *p_demux, KaxBlock *block, KaxSimpleBlock *simpleblock
 class attachment_c
 {
 public:
-    attachment_c( std::string _psz_file_name, std::string _psz_mime_type, int _i_size )
+    attachment_c( const std::string& _psz_file_name, const std::string& _psz_mime_type, int _i_size )
         :i_size(_i_size)
         ,psz_file_name( _psz_file_name)
         ,psz_mime_type( _psz_mime_type)
@@ -143,9 +143,9 @@ public:
         return (p_data != NULL);
     }
 
-    const char* fileName() { return psz_file_name.c_str(); }
-    const char* mimeType() { return psz_mime_type.c_str(); }
-    int         size()     { return i_size; }
+    const char* fileName() const { return psz_file_name.c_str(); }
+    const char* mimeType() const { return psz_mime_type.c_str(); }
+    int         size() const    { return i_size; }
 
     void          *p_data;
 private: