mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-26 15:25:04 +02:00
* Updated breakpad to latest version.
This commit is contained in:
12
thirdparty/breakpad/common/memory.h
vendored
12
thirdparty/breakpad/common/memory.h
vendored
@@ -145,6 +145,18 @@ class wasteful_vector {
|
||||
used_(0) {
|
||||
}
|
||||
|
||||
T& back() {
|
||||
return a_[used_ - 1];
|
||||
}
|
||||
|
||||
const T& back() const {
|
||||
return a_[used_ - 1];
|
||||
}
|
||||
|
||||
bool empty() const {
|
||||
return used_ == 0;
|
||||
}
|
||||
|
||||
void push_back(const T& new_element) {
|
||||
if (used_ == allocated_)
|
||||
Realloc(allocated_ * 2);
|
||||
|
Reference in New Issue
Block a user