Skip to content

Commit

Permalink
Add braces to single line statements (clang-tidy -checks='-*,google-r…
Browse files Browse the repository at this point in the history
…eadability-braces-around-statements')

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Mar 22, 2021
1 parent 205cd32 commit d4d5191
Show file tree
Hide file tree
Showing 286 changed files with 9,825 additions and 5,170 deletions.
6 changes: 4 additions & 2 deletions src/api/altorenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ bool TessAltoRenderer::BeginDocumentHandler() {
///
bool TessAltoRenderer::AddImageHandler(TessBaseAPI *api) {
const std::unique_ptr<const char[]> text(api->GetAltoText(imagenum()));
if (text == nullptr)
if (text == nullptr) {
return false;
}

AppendString(text.get());

Expand Down Expand Up @@ -126,8 +127,9 @@ char *TessBaseAPI::GetAltoText(int page_number) {
/// data structures.
///
char *TessBaseAPI::GetAltoText(ETEXT_DESC *monitor, int page_number) {
if (tesseract_ == nullptr || (page_res_ == nullptr && Recognize(monitor) < 0))
if (tesseract_ == nullptr || (page_res_ == nullptr && Recognize(monitor) < 0)) {
return nullptr;
}

int lcnt = 0, tcnt = 0, bcnt = 0, wcnt = 0;

Expand Down
Loading

0 comments on commit d4d5191

Please sign in to comment.