Skip to content

Commit

Permalink
Convert ELIST2 into template.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Nov 22, 2024
1 parent 4991295 commit 63be216
Show file tree
Hide file tree
Showing 8 changed files with 1,004 additions and 1,143 deletions.
2 changes: 1 addition & 1 deletion src/ccstruct/blobbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ class BLOBNBOX : public ELIST<BLOBNBOX>::LINK {
bool owns_cblob_ = false;
};

class TO_ROW : public ELIST2_LINK {
class TO_ROW : public ELIST2<TO_ROW>::LINK {
public:
static const int kErrorWeight = 3;

Expand Down
2 changes: 1 addition & 1 deletion src/ccstruct/werd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ WERD *WERD::shallow_copy() {
*/

WERD &WERD::operator=(const WERD &source) {
this->ELIST2_LINK::operator=(source);
this->ELIST2<WERD>::LINK::operator=(source);
blanks = source.blanks;
flags = source.flags;
script_id_ = source.script_id_;
Expand Down
2 changes: 1 addition & 1 deletion src/ccstruct/werd.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ enum DISPLAY_FLAGS {

class ROW; // forward decl

class TESS_API WERD : public ELIST2_LINK {
class TESS_API WERD : public ELIST2<WERD>::LINK {
public:
WERD() = default;
// WERD constructed with:
Expand Down
Loading

0 comments on commit 63be216

Please sign in to comment.