mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 12:49:35 +08:00
Modernize code (clang-tidy -checks='-*,modernize-use-equals-*')
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
2a83c4a898
commit
49d4afca63
@ -30,7 +30,7 @@ protected:
|
||||
file::MakeTmpdir();
|
||||
}
|
||||
|
||||
ImagedataTest() {}
|
||||
ImagedataTest() = default;
|
||||
|
||||
// Creates a fake DocumentData, writes it to a file, and returns the filename.
|
||||
std::string MakeFakeDoc(int num_pages, unsigned doc_id, std::vector<std::string> *page_texts) {
|
||||
|
@ -50,7 +50,7 @@ protected:
|
||||
file::MakeTmpdir();
|
||||
}
|
||||
|
||||
LSTMTrainerTest() {}
|
||||
LSTMTrainerTest() = default;
|
||||
std::string TestDataNameToPath(const std::string &name) {
|
||||
return file::JoinPath(TESTDATA_DIR, "" + name);
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ public:
|
||||
false_unichar_id_ = 67;
|
||||
false_shape_ = shape_table_->AddShape(false_unichar_id_, 25);
|
||||
}
|
||||
~MockClassifier() override {}
|
||||
~MockClassifier() override = default;
|
||||
|
||||
// Classifies the given [training] sample, writing to results.
|
||||
// If debug is non-zero, then various degrees of classifier dependent debug
|
||||
|
@ -31,7 +31,7 @@ protected:
|
||||
ResultIteratorTest() {
|
||||
src_pix_ = nullptr;
|
||||
}
|
||||
~ResultIteratorTest() override {}
|
||||
~ResultIteratorTest() override = default;
|
||||
|
||||
void SetImage(const char *filename) {
|
||||
src_pix_ = pixRead(TestDataNameToPath(filename).c_str());
|
||||
|
@ -24,7 +24,7 @@ protected:
|
||||
std::locale::global(std::locale(""));
|
||||
}
|
||||
|
||||
TfileTest() {}
|
||||
TfileTest() = default;
|
||||
|
||||
// Some data to serialize.
|
||||
class MathData {
|
||||
|
Loading…
Reference in New Issue
Block a user