mirror of
https://github.com/libretro/bsnes-libretro.git
synced 2024-11-27 02:50:32 +00:00
Fix vector<T>::acquire() arguments
This commit is contained in:
parent
55e05c89c2
commit
64d484476d
@ -45,7 +45,7 @@ struct vector_base {
|
||||
|
||||
//memory.hpp
|
||||
auto reset() -> void;
|
||||
auto acquire(const T* data, uint64_t size, uint64_t capacity = 0) -> void;
|
||||
auto acquire(T* data, uint64_t size, uint64_t capacity = 0) -> void;
|
||||
auto release() -> T*;
|
||||
|
||||
auto reserveLeft(uint64_t capacity) -> bool;
|
||||
|
@ -19,7 +19,7 @@ template<typename T> auto vector<T>::reset() -> void {
|
||||
|
||||
//acquire ownership of allocated memory
|
||||
|
||||
template<typename T> auto vector<T>::acquire(const T* data, uint64_t size, uint64_t capacity) -> void {
|
||||
template<typename T> auto vector<T>::acquire(T* data, uint64_t size, uint64_t capacity) -> void {
|
||||
reset();
|
||||
_pool = data;
|
||||
_size = size;
|
||||
|
Loading…
Reference in New Issue
Block a user