mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 20:59:36 +08:00
commit
ac3b40de2f
@ -183,13 +183,20 @@ class Dawg {
|
||||
/// of the given unichar_id.
|
||||
virtual void unichar_id_to_patterns(UNICHAR_ID unichar_id,
|
||||
const UNICHARSET &unicharset,
|
||||
GenericVector<UNICHAR_ID> *vec) const {};
|
||||
GenericVector<UNICHAR_ID> *vec) const {
|
||||
(void)unichar_id;
|
||||
(void)unicharset;
|
||||
(void)vec;
|
||||
}
|
||||
|
||||
/// Returns the given EDGE_REF if the EDGE_RECORD that it points to has
|
||||
/// a self loop and the given unichar_id matches the unichar_id stored in the
|
||||
/// EDGE_RECORD, returns NO_EDGE otherwise.
|
||||
virtual EDGE_REF pattern_loop_edge(
|
||||
EDGE_REF edge_ref, UNICHAR_ID unichar_id, bool word_end) const {
|
||||
(void)edge_ref;
|
||||
(void)unichar_id;
|
||||
(void)word_end;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -383,6 +383,7 @@ class Dict {
|
||||
double def_probability_in_context(
|
||||
const char* lang, const char* context, int context_bytes,
|
||||
const char* character, int character_bytes) {
|
||||
(void) lang;
|
||||
(void) context;
|
||||
(void) context_bytes;
|
||||
(void) character;
|
||||
|
@ -807,9 +807,9 @@ CLASS_STRUCT* SetUpForFloat2Int(const UNICHARSET& unicharset,
|
||||
void Normalize (
|
||||
float *Values)
|
||||
{
|
||||
register float Slope;
|
||||
register float Intercept;
|
||||
register float Normalizer;
|
||||
float Slope;
|
||||
float Intercept;
|
||||
float Normalizer;
|
||||
|
||||
Slope = tan (Values [2] * 2 * PI);
|
||||
Intercept = Values [1] - Slope * Values [0];
|
||||
|
@ -89,7 +89,7 @@ class SVEventHandler {
|
||||
|
||||
// Gets called by the SV Window. Does nothing on default, overwrite this
|
||||
// to implement the desired behaviour
|
||||
virtual void Notify(const SVEvent* sve) { }
|
||||
virtual void Notify(const SVEvent* sve) { (void)sve; }
|
||||
};
|
||||
|
||||
// The ScrollView class provides the expernal API to the scrollviewer process.
|
||||
|
Loading…
Reference in New Issue
Block a user