mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 20:59:36 +08:00
Replace GenericVector by std::vector in class WERD_CHOICE
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
b030b03e0d
commit
394c56ab15
@ -27,10 +27,9 @@
|
||||
#include "normalis.h" // kBlnBaselineOffset.
|
||||
#include "unicharset.h"
|
||||
|
||||
#include "genericvector.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace tesseract {
|
||||
|
||||
@ -764,9 +763,9 @@ void WERD_CHOICE::DisplaySegmentation(TWERD* word) {
|
||||
const int kNumColors = 6;
|
||||
static ScrollView *segm_window = nullptr;
|
||||
// Check the state against the static prev_drawn_state.
|
||||
static GenericVector<int> prev_drawn_state;
|
||||
static std::vector<int> prev_drawn_state;
|
||||
bool already_done = prev_drawn_state.size() == length_;
|
||||
if (!already_done) prev_drawn_state.init_to_size(length_, 0);
|
||||
if (!already_done) prev_drawn_state.resize(length_);
|
||||
for (int i = 0; i < length_; ++i) {
|
||||
if (prev_drawn_state[i] != state_[i]) {
|
||||
already_done = false;
|
||||
|
Loading…
Reference in New Issue
Block a user