Formatting changes from clang_tidy on latest pull

# Conflicts:
#	ccutil/host.h
This commit is contained in:
Zdenko Podobný 2016-12-07 16:58:25 +01:00
parent b169ef5d34
commit 82529e31dd
8 changed files with 21 additions and 24 deletions

View File

@ -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

View File

@ -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++;

View File

@ -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;
}

View File

@ -525,7 +525,7 @@ CLUSTERER *SetUpForClustering(const FEATURE_DEFS_STRUCT &FeatureDefs,
CharID++;
}
free(Sample);
return( Clusterer );
return Clusterer;
} /* SetUpForClustering */