Replace GenericVector by std::vector in LoadFileLinesToStrings

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2021-01-15 20:07:25 +01:00
parent 5d8594cd80
commit 3d47e0a91a

View File

@ -17,8 +17,7 @@
#define TESSERACT_TRAINING_FILEIO_H_ #define TESSERACT_TRAINING_FILEIO_H_
#include "export.h" #include "export.h"
#include "serialis.h" // for LoadDataFromFile
#include "genericvector.h" // for GenericVector
#include "strngs.h" // for STRING #include "strngs.h" // for STRING
#include <tesseract/export.h> #include <tesseract/export.h>
@ -33,7 +32,7 @@ namespace tesseract {
// TODO: Use std::vector and std::string for LoadFileLinesToStrings. // TODO: Use std::vector and std::string for LoadFileLinesToStrings.
inline bool LoadFileLinesToStrings(const char* filename, inline bool LoadFileLinesToStrings(const char* filename,
std::vector<STRING>* lines) { std::vector<STRING>* lines) {
GenericVector<char> data; std::vector<char> data;
if (!LoadDataFromFile(filename, &data)) { if (!LoadDataFromFile(filename, &data)) {
return false; return false;
} }