Skip to content

Commit

Permalink
fix "cannot pass non-trivial object of type 'std::string'"
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Jan 8, 2023
1 parent 804b636 commit 0ef1920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/training/unicharset/lang_model_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ int CombineLangModel(const UNICHARSET &unicharset, const std::string &script_dir
tprintf("Error writing output traineddata file!!\n");
return EXIT_FAILURE;
}
tprintf("Created %s/%s/%s.traineddata", output_dir, lang, lang);
tprintf("Created %s/%s/%s.traineddata", output_dir.c_str(), lang.c_str(), lang.c_str());
return EXIT_SUCCESS;
}

Expand Down

0 comments on commit 0ef1920

Please sign in to comment.