[vlc-commits] mkv: constification
Hugo Beauzée-Luyssen
git at videolan.org
Tue Oct 18 12:26:55 CEST 2011
vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Mon Oct 17 19:55:41 2011 +0200| [07f84f2a89e429ac22699ea9f072d2821e397a89] | committer: Jean-Baptiste Kempf
mkv: constification
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=07f84f2a89e429ac22699ea9f072d2821e397a89
---
modules/demux/mkv/mkv.hpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/demux/mkv/mkv.hpp b/modules/demux/mkv/mkv.hpp
index c299ae3..e1027a7 100644
--- a/modules/demux/mkv/mkv.hpp
+++ b/modules/demux/mkv/mkv.hpp
@@ -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:
More information about the vlc-commits
mailing list