mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-21 17:13:09 +08:00
Replace more GenericVector by std::vector for src/ccutil
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
573e7d6bb9
commit
92e98a30e1
@ -140,14 +140,18 @@ ELISTIZEH(AmbigSpec)
|
|||||||
|
|
||||||
// AMBIG_TABLE[i] stores a set of ambiguities whose
|
// AMBIG_TABLE[i] stores a set of ambiguities whose
|
||||||
// wrong ngram starts with unichar id i.
|
// wrong ngram starts with unichar id i.
|
||||||
using UnicharAmbigsVector = GenericVector<AmbigSpec_LIST *>;
|
using UnicharAmbigsVector = std::vector<AmbigSpec_LIST *>;
|
||||||
|
|
||||||
class UnicharAmbigs {
|
class UnicharAmbigs {
|
||||||
public:
|
public:
|
||||||
UnicharAmbigs() = default;
|
UnicharAmbigs() = default;
|
||||||
~UnicharAmbigs() {
|
~UnicharAmbigs() {
|
||||||
replace_ambigs_.delete_data_pointers();
|
for (auto data : replace_ambigs_) {
|
||||||
dang_ambigs_.delete_data_pointers();
|
delete data;
|
||||||
|
}
|
||||||
|
for (auto data : dang_ambigs_) {
|
||||||
|
delete data;
|
||||||
|
}
|
||||||
one_to_one_definite_ambigs_.delete_data_pointers();
|
one_to_one_definite_ambigs_.delete_data_pointers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user