mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-18 16:04:52 +00:00
Make memory_c::add() use const buffer
This commit is contained in:
parent
97cc212165
commit
42e5173ae5
@ -37,7 +37,7 @@ memory_c::resize(size_t new_size)
|
||||
}
|
||||
|
||||
void
|
||||
memory_c::add(unsigned char *new_buffer,
|
||||
memory_c::add(unsigned char const *new_buffer,
|
||||
size_t new_size) {
|
||||
if ((0 == new_size) || (NULL == new_buffer))
|
||||
return;
|
||||
|
@ -169,8 +169,8 @@ public:
|
||||
}
|
||||
|
||||
void resize(size_t new_size) throw();
|
||||
void add(unsigned char *new_buffer, size_t new_size);
|
||||
void add(memory_cptr &new_buffer) {
|
||||
void add(unsigned char const *new_buffer, size_t new_size);
|
||||
void add(memory_cptr const &new_buffer) {
|
||||
add(new_buffer->get_buffer(), new_buffer->get_size());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user