Replace more GenericVector by std::vector for src/ccutil

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2021-03-18 12:04:22 +01:00
parent 573e7d6bb9
commit 92e98a30e1

View File

@ -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();
} }