Skip to content

Commit 5eca914

Browse files
committed
training: Replace NULL by nullptr
Signed-off-by: Stefan Weil <[email protected]>
1 parent 222f5b9 commit 5eca914

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

training/cntraining.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ int main(int argc, char *argv[]) {
164164
Clusterer =
165165
SetUpForClustering(FeatureDefs, CharSample, PROGRAM_FEATURE_TYPE);
166166
if (Clusterer == nullptr) { // To avoid a SIGSEGV
167-
fprintf(stderr, "Error: NULL clusterer!\n");
167+
fprintf(stderr, "Error: nullptr clusterer!\n");
168168
return 1;
169169
}
170170
float SavedMinSamples = Config.MinSamples;

training/tessopt.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const char *arglist //string of arg chars
4141
tessoptind = 1;
4242
if (tessoptind < argc && argv[tessoptind][0] == '-') {
4343
arg = strchr (arglist, argv[tessoptind][1]);
44-
if (arg == NULL || *arg == ':')
44+
if (arg == nullptr || *arg == ':')
4545
return '?'; //dud option
4646
tessoptind++;
4747
tessoptarg = argv[tessoptind];

0 commit comments

Comments
 (0)