mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-04 01:39:16 +08:00
Formatting changes from clang_tidy on latest pull
# Conflicts: # ccutil/host.h
This commit is contained in:
parent
b169ef5d34
commit
82529e31dd
@ -50,9 +50,7 @@ class PDBLK {
|
||||
void set_sides(ICOORDELT_LIST *left, ICOORDELT_LIST *right);
|
||||
|
||||
/// destructor
|
||||
~PDBLK() {
|
||||
delete hand_poly;
|
||||
}
|
||||
~PDBLK() { delete hand_poly; }
|
||||
|
||||
POLY_BLOCK *poly_block() const { return hand_poly; }
|
||||
/// set the poly block
|
||||
|
@ -59,8 +59,7 @@ class UnicharIdArrayUtils {
|
||||
// less than length of array2, if any array1[i] is less than array2[i].
|
||||
// Returns 0 if the arrays are equal, 1 otherwise.
|
||||
// The function assumes that the arrays are terminated by INVALID_UNICHAR_ID.
|
||||
static inline int compare(const UNICHAR_ID *ptr1,
|
||||
const UNICHAR_ID *ptr2) {
|
||||
static inline int compare(const UNICHAR_ID *ptr1, const UNICHAR_ID *ptr2) {
|
||||
for (;;) {
|
||||
const UNICHAR_ID val1 = *ptr1++;
|
||||
const UNICHAR_ID val2 = *ptr2++;
|
||||
|
@ -1142,7 +1142,7 @@ OpenclDevice::pixReadMemTiffCl(const l_uint8 *data,size_t size,l_int32 n)
|
||||
}
|
||||
|
||||
if (pagefound == FALSE) {
|
||||
L_WARNING("tiff page %d not found", procName, i);
|
||||
L_WARNING("tiff page %d not found\n", procName, i);
|
||||
TIFFCleanup(tif);
|
||||
return NULL;
|
||||
}
|
||||
|
@ -525,7 +525,7 @@ CLUSTERER *SetUpForClustering(const FEATURE_DEFS_STRUCT &FeatureDefs,
|
||||
CharID++;
|
||||
}
|
||||
free(Sample);
|
||||
return( Clusterer );
|
||||
return Clusterer;
|
||||
|
||||
} /* SetUpForClustering */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user