Skip to content

Commit cefc420

Browse files
committed
Remove extra semicolons after member function definitions
clang++ report: api/baseapi.h:852:4: warning: extra ';' after member function definition [-Wextra-semi] [...] Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 3e11fc1 commit cefc420

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

api/baseapi.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ class TESS_API TessBaseAPI {
849849

850850
TESS_LOCAL const PAGE_RES* GetPageRes() const {
851851
return page_res_;
852-
};
852+
}
853853
/* @} */
854854

855855

ccstruct/params_training_featdef.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ typedef GenericVector<ParamsTrainingHypothesis> ParamsTrainingHypothesisList;
126126
// explored on PASS1, PASS2, fix xheight pass, etc).
127127
class ParamsTrainingBundle {
128128
public:
129-
ParamsTrainingBundle() {};
129+
ParamsTrainingBundle() {}
130130
// Starts a new hypothesis list.
131131
// Should be called at the beginning of a new run of the segmentation search.
132132
void StartHypothesisList() {

ccutil/bits16.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ class DLLSYM BITS16
3737
void turn_on_bit( // flip specified bit
3838
uinT8 bit_num) { // bit to flip 0..7
3939
val = val | 01 << bit_num;
40-
};
40+
}
4141

4242
void turn_off_bit( // flip specified bit
4343
uinT8 bit_num) { // bit to flip 0..7
4444
val = val & ~(01 << bit_num);
45-
};
45+
}
4646

4747
void set_bit( // flip specified bit
4848
uinT8 bit_num, // bit to flip 0..7
@@ -51,11 +51,11 @@ class DLLSYM BITS16
5151
val = val | 01 << bit_num;
5252
else
5353
val = val & ~(01 << bit_num);
54-
};
54+
}
5555

5656
BOOL8 bit( // access bit
5757
uinT8 bit_num) const { // bit to access
5858
return (val >> bit_num) & 01;
59-
};
59+
}
6060
};
6161
#endif

ccutil/strngs.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ class TESS_API STRING
149149
// returns the string data part of storage
150150
inline char* GetCStr() {
151151
return ((char *)data_) + sizeof(STRING_HEADER);
152-
};
152+
}
153153

154154
inline const char* GetCStr() const {
155155
return ((const char *)data_) + sizeof(STRING_HEADER);
156-
};
156+
}
157157
inline bool InvariantOk() const {
158158
#if STRING_IS_PROTECTED
159159
return (GetHeader()->used_ == 0) ?

cube/beam_search.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class BeamSearch {
8080
// best-cost path before the alternates list is sorted.
8181
inline int BestPresortedNodeIndex() const {
8282
return best_presorted_node_idx_;
83-
};
83+
}
8484

8585
private:
8686
// Maximum reasonable segmentation point count

dict/dawg.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class Dawg {
128128
inline const STRING &lang() const { return lang_; }
129129
inline PermuterType permuter() const { return perm_; }
130130

131-
virtual ~Dawg() {};
131+
virtual ~Dawg() {}
132132

133133
/// Returns true if the given word is in the Dawg.
134134
bool word_in_dawg(const WERD_CHOICE &word) const;

textord/blkocc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class REGION_OCC:public ELIST_LINK
5353
inT16 region_type; //Type of crossing
5454

5555
REGION_OCC() {
56-
}; //constructor used
56+
} //constructor used
5757
//only in COPIER etc
5858
REGION_OCC( //constructor
5959
float min,

0 commit comments

Comments
 (0)