Skip to content

Commit 9f17a3f

Browse files
committed
Move small function into a header.
1 parent 6d7ec87 commit 9f17a3f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/ccutil/errcode.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,4 @@ void ERRCODE::error( // handle error
8686
}
8787
}
8888

89-
void ERRCODE::error(const char *caller, TessErrorLogCode action) const {
90-
error(caller, action, nullptr);
91-
}
92-
9389
} // namespace tesseract

src/ccutil/errcode.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ class TESS_API ERRCODE { // error handler class
4343
TessErrorLogCode action, // action to take
4444
const char *format, ... // fprintf format
4545
) const __attribute__((format(printf, 4, 5)));
46-
void error(const char *caller, TessErrorLogCode action) const;
46+
void error(const char *caller, TessErrorLogCode action) const {
47+
error(caller, action, nullptr);
48+
}
4749
constexpr ERRCODE(const char *string) : message(string) {} // initialize with string
4850
};
4951

0 commit comments

Comments
 (0)