mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-21 17:13:09 +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_
|
#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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user