mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
Do not allocate in GenericVector default ctor
This commit is contained in:
parent
b6db68f083
commit
907de5995f
@ -37,9 +37,9 @@
|
||||
template <typename T>
|
||||
class GenericVector {
|
||||
public:
|
||||
GenericVector() {
|
||||
init(kDefaultVectorSize);
|
||||
}
|
||||
GenericVector() : size_used_(0), size_reserved_(0), data_(NULL),
|
||||
clear_cb_(NULL), compare_cb_(NULL) {}
|
||||
|
||||
GenericVector(int size, T init_val) {
|
||||
init(size);
|
||||
init_to_size(size, init_val);
|
||||
|
Loading…
Reference in New Issue
Block a user