Skip to content

Commit

Permalink
BITS16: Use inline code for all constructors (#1434)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil authored and zdenop committed Mar 28, 2018
1 parent 832926f commit 2cc46fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 32 deletions.
2 changes: 1 addition & 1 deletion ccutil/Makefile.am
Expand Up @@ -27,7 +27,7 @@ noinst_HEADERS = \
noinst_LTLIBRARIES = libtesseract_ccutil.la

libtesseract_ccutil_la_SOURCES = \
ambigs.cpp basedir.cpp bits16.cpp bitvector.cpp \
ambigs.cpp basedir.cpp bitvector.cpp \
ccutil.cpp clst.cpp \
elst2.cpp elst.cpp errcode.cpp \
globaloc.cpp indexmapbidi.cpp \
Expand Down
29 changes: 0 additions & 29 deletions ccutil/bits16.cpp

This file was deleted.

5 changes: 3 additions & 2 deletions ccutil/bits16.h
Expand Up @@ -31,8 +31,9 @@ class DLLSYM BITS16
val = 0;
} // constructor

BITS16( // constructor
uint16_t init); // initial val
BITS16(uint16_t init) {
val = init;
}

void turn_on_bit( // flip specified bit
uint8_t bit_num) { // bit to flip 0..7
Expand Down

0 comments on commit 2cc46fa

Please sign in to comment.