Skip to content

Commit

Permalink
Move small function into a header.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Nov 23, 2024
1 parent 6d7ec87 commit 9f17a3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions src/ccutil/errcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,4 @@ void ERRCODE::error( // handle error
}
}

void ERRCODE::error(const char *caller, TessErrorLogCode action) const {
error(caller, action, nullptr);
}

} // namespace tesseract
4 changes: 3 additions & 1 deletion src/ccutil/errcode.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ class TESS_API ERRCODE { // error handler class
TessErrorLogCode action, // action to take
const char *format, ... // fprintf format
) const __attribute__((format(printf, 4, 5)));
void error(const char *caller, TessErrorLogCode action) const;
void error(const char *caller, TessErrorLogCode action) const {
error(caller, action, nullptr);
}
constexpr ERRCODE(const char *string) : message(string) {} // initialize with string
};

Expand Down

0 comments on commit 9f17a3f

Please sign in to comment.