Stefan Weil
a0fd90583b
Modernize C++ code using auto
...
The modifications were done using this command:
run-clang-tidy-8.py -header-filter='.*' -checks='-*,modernize-use-auto' -fix
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-26 07:55:08 +01:00
Stefan Weil
41da5afe9d
UNICHARSET: Fix compiler warning (signed/unsigned mismatch)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-03-24 21:18:21 +01:00
Stefan Weil
aa2dcca295
Fix compiler warnings (-Wstringop-truncation)
...
gcc warnings:
src/api/tesseractmain.cpp:252:14: warning:
‘char* strncpy(char*, const char*, size_t)’ specified bound 255
equals destination size [-Wstringop-truncation]
src/ccutil/unicharset.h:66:12: warning:
‘char* strncpy(char*, const char*, size_t)’ output may be truncated copying 30 bytes from a string of length 30 [-Wstringop-truncation]
src/ccutil/unicharset.cpp:806:12: warning:
‘char* strncpy(char*, const char*, size_t)’ specified bound 64 equals destination size [-Wstringop-truncation]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-02-09 16:32:09 +01:00
Stefan Weil
9b783822a0
Remove unused include statements for tprintf.h
...
Format also a call of tprintf and add a missing explicit include statement.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-11-18 17:25:01 +01:00
Stefan Weil
509a6f0ce0
Fix some typos (most found by codespell)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-05-27 18:49:43 +02:00
Alexander Zaitsev
d54d7486b4
Use std::max/std::min instead of MAX/MIN macros.
2018-05-20 17:49:48 +03:00
Alexander Zaitsev
0248c7ff9d
Rename all C-style headers (e.g. <stdio.h>) to C++ style (<cstdio>).
2018-05-20 00:52:04 +03:00
Egor Pugin
e95ff1159e
Move sources into src dir. Update build scripts.
2018-04-25 11:02:54 +03:00