mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-21 08:43:03 +08:00
Replace GenericVector by std::vector in LoadFileLinesToStrings
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
5d8594cd80
commit
3d47e0a91a
@ -17,8 +17,7 @@
|
||||
#define TESSERACT_TRAINING_FILEIO_H_
|
||||
|
||||
#include "export.h"
|
||||
|
||||
#include "genericvector.h" // for GenericVector
|
||||
#include "serialis.h" // for LoadDataFromFile
|
||||
#include "strngs.h" // for STRING
|
||||
|
||||
#include <tesseract/export.h>
|
||||
@ -33,7 +32,7 @@ namespace tesseract {
|
||||
// TODO: Use std::vector and std::string for LoadFileLinesToStrings.
|
||||
inline bool LoadFileLinesToStrings(const char* filename,
|
||||
std::vector<STRING>* lines) {
|
||||
GenericVector<char> data;
|
||||
std::vector<char> data;
|
||||
if (!LoadDataFromFile(filename, &data)) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user