mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-13 16:09:04 +08:00
Do not allocate in GenericVector default ctor
This commit is contained in:
parent
6cbe6be6e9
commit
90723e6321
@ -37,9 +37,9 @@
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
class GenericVector {
|
class GenericVector {
|
||||||
public:
|
public:
|
||||||
GenericVector() {
|
GenericVector() : size_used_(0), size_reserved_(0), data_(NULL),
|
||||||
init(kDefaultVectorSize);
|
clear_cb_(NULL), compare_cb_(NULL) {}
|
||||||
}
|
|
||||||
GenericVector(int size, T init_val) {
|
GenericVector(int size, T init_val) {
|
||||||
init(size);
|
init(size);
|
||||||
init_to_size(size, init_val);
|
init_to_size(size, init_val);
|
||||||
|
Loading…
Reference in New Issue
Block a user