Skip to content

Commit 1526cf1

Browse files
committed
Make lists classes again.
1 parent 1355287 commit 1526cf1

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

src/ccutil/elst.h

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,13 +1110,15 @@ class ELIST {
11101110

11111111
// add TESS_API?
11121112
// move templated lists to public include dirs?
1113-
#define ELISTIZEH(CLASSNAME) \
1114-
struct CLASSNAME##_LIST : ELIST<CLASSNAME> { \
1115-
using ELIST<CLASSNAME>::ELIST; \
1116-
}; \
1117-
struct CLASSNAME##_IT : ELIST<CLASSNAME>::ITERATOR { \
1118-
using base = ELIST<CLASSNAME>::ITERATOR; \
1119-
using base::base; \
1113+
#define ELISTIZEH(CLASSNAME) \
1114+
class CLASSNAME##_LIST : public ELIST<CLASSNAME> { \
1115+
public: \
1116+
using ELIST<CLASSNAME>::ELIST; \
1117+
}; \
1118+
class CLASSNAME##_IT : public ELIST<CLASSNAME>::ITERATOR { \
1119+
public: \
1120+
using base = ELIST<CLASSNAME>::ITERATOR; \
1121+
using base::base; \
11201122
};
11211123

11221124
} // namespace tesseract

src/ccutil/elst2.h

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,13 +1159,15 @@ class ELIST2 {
11591159

11601160
// add TESS_API?
11611161
// move templated lists to public include dirs?
1162-
#define ELIST2IZEH(CLASSNAME) \
1163-
struct CLASSNAME##_LIST : ELIST2<CLASSNAME> { \
1164-
using ELIST2<CLASSNAME>::ELIST2; \
1165-
}; \
1166-
struct CLASSNAME##_IT : ELIST2<CLASSNAME>::ITERATOR { \
1167-
using base = ELIST2<CLASSNAME>::ITERATOR; \
1168-
using base::base; \
1162+
#define ELIST2IZEH(CLASSNAME) \
1163+
class CLASSNAME##_LIST : public ELIST2<CLASSNAME> { \
1164+
public: \
1165+
using ELIST2<CLASSNAME>::ELIST2; \
1166+
}; \
1167+
class CLASSNAME##_IT : public ELIST2<CLASSNAME>::ITERATOR { \
1168+
public: \
1169+
using base = ELIST2<CLASSNAME>::ITERATOR; \
1170+
using base::base; \
11691171
};
11701172

11711173
} // namespace tesseract

0 commit comments

Comments
 (0)