提交 9929587f 编写于 作者: S Stefan Weil

Remove extra semicolons

This fixes these compiler warnings:

    ccmain/equationdetect.cpp:1519:2: warning: extra ‘;’ [-Wpedantic]
    ccstruct/blobs.cpp:65:17: warning: extra ‘;’ [-Wpedantic]
    ccstruct/blobs.h:178:18: warning: extra ‘;’ [-Wpedantic]
    ccstruct/ratngs.cpp:36:22: warning: extra ‘;’ [-Wpedantic]
    ccstruct/ratngs.cpp:37:22: warning: extra ‘;’ [-Wpedantic]
    ccutil/ambigs.cpp:46:20: warning: extra ‘;’ [-Wpedantic]
    ccutil/ambigs.h:137:21: warning: extra ‘;’ [-Wpedantic]
    cutil/structures.cpp:36:45: warning: extra ‘;’ [-Wpedantic]
    textord/equationdetectbase.cpp:65:2: warning: extra ‘;’ [-Wpedantic]
    textord/equationdetectbase.h:57:2: warning: extra ‘;’ [-Wpedantic]
    wordrec/lm_state.cpp:25:28: warning: extra ‘;’ [-Wpedantic]
    wordrec/lm_state.h:190:29: warning: extra ‘;’ [-Wpedantic]
Signed-off-by: NStefan Weil <sw@weilnetz.de>
上级 fa9e43fd
......@@ -1516,4 +1516,4 @@ void EquationDetect::PrintSpecialBlobsDensity(const ColPartition* part) const {
tprintf("\n");
}
}; // namespace tesseract
} // namespace tesseract
......@@ -62,7 +62,7 @@ const TPOINT kDivisibleVerticalItalic(1, 5);
F u n c t i o n s
----------------------------------------------------------------------*/
CLISTIZE(EDGEPT);
CLISTIZE(EDGEPT)
// Returns true when the two line segments cross each other.
// (Moved from outlines.cpp).
......
......@@ -175,7 +175,7 @@ struct EDGEPT {
};
// For use in chop and findseam to keep a list of which EDGEPTs were inserted.
CLISTIZEH(EDGEPT);
CLISTIZEH(EDGEPT)
struct TESSLINE {
TESSLINE() : is_hole(false), loop(NULL), next(NULL) {}
......
......@@ -33,8 +33,8 @@
using tesseract::ScriptPos;
ELISTIZE(BLOB_CHOICE);
ELISTIZE(WERD_CHOICE);
ELISTIZE(BLOB_CHOICE)
ELISTIZE(WERD_CHOICE)
const float WERD_CHOICE::kBadRating = 100000.0;
// Min offset in baseline-normalized coords to make a character a subscript.
......
......@@ -43,7 +43,7 @@ AmbigSpec::AmbigSpec() {
wrong_ngram_size = 0;
}
ELISTIZE(AmbigSpec);
ELISTIZE(AmbigSpec)
// Initializes the ambigs by adding a NULL pointer to each table.
void UnicharAmbigs::InitUnicharAmbigs(const UNICHARSET& unicharset,
......
......@@ -134,7 +134,7 @@ class AmbigSpec : public ELIST_LINK {
AmbigType type;
int wrong_ngram_size;
};
ELISTIZEH(AmbigSpec);
ELISTIZEH(AmbigSpec)
// AMBIG_TABLE[i] stores a set of ambiguities whose
// wrong ngram starts with unichar id i.
......
......@@ -33,4 +33,4 @@
/*----------------------------------------------------------------------
F u n c t i o n s
----------------------------------------------------------------------*/
makestructure(new_cell, free_cell, list_rec);
makestructure(new_cell, free_cell, list_rec)
......@@ -62,4 +62,4 @@ void EquationDetectBase::RenderSpecialText(Pix* pix,
boxDestroy(&box);
}
}; // namespace tesseract
} // namespace tesseract
......@@ -54,6 +54,6 @@ class EquationDetectBase {
static void RenderSpecialText(Pix* pix, BLOBNBOX* blob);
};
}; // namespace tesseract
} // namespace tesseract
#endif // TESSERACT_TEXTORD_EQUATIONDETECTBASE_H_
......@@ -22,7 +22,7 @@
namespace tesseract {
ELISTIZE(ViterbiStateEntry);
ELISTIZE(ViterbiStateEntry)
void ViterbiStateEntry::Print(const char *msg) const {
tprintf("%s ViterbiStateEntry", msg);
......
......@@ -187,7 +187,7 @@ struct ViterbiStateEntry : public ELIST_LINK {
STRING *debug_str;
};
ELISTIZEH(ViterbiStateEntry);
ELISTIZEH(ViterbiStateEntry)
/// Struct to store information maintained by various language model components.
struct LanguageModelState {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册