Skip to content

Commit 2cc46fa

Browse files
stweilzdenop
authored andcommitted
BITS16: Use inline code for all constructors (#1434)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 832926f commit 2cc46fa

File tree

3 files changed

+4
-32
lines changed

3 files changed

+4
-32
lines changed

ccutil/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ noinst_HEADERS = \
2727
noinst_LTLIBRARIES = libtesseract_ccutil.la
2828

2929
libtesseract_ccutil_la_SOURCES = \
30-
ambigs.cpp basedir.cpp bits16.cpp bitvector.cpp \
30+
ambigs.cpp basedir.cpp bitvector.cpp \
3131
ccutil.cpp clst.cpp \
3232
elst2.cpp elst.cpp errcode.cpp \
3333
globaloc.cpp indexmapbidi.cpp \

ccutil/bits16.cpp

-29
This file was deleted.

ccutil/bits16.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ class DLLSYM BITS16
3131
val = 0;
3232
} // constructor
3333

34-
BITS16( // constructor
35-
uint16_t init); // initial val
34+
BITS16(uint16_t init) {
35+
val = init;
36+
}
3637

3738
void turn_on_bit( // flip specified bit
3839
uint8_t bit_num) { // bit to flip 0..7

0 commit comments

Comments
 (0)