mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
Make simple classes simpler.
This commit is contained in:
parent
5adf0c8ab3
commit
dad0fefc11
@ -19,8 +19,7 @@
|
||||
namespace tesseract {
|
||||
|
||||
template <typename ITERATOR, typename CLASSNAME>
|
||||
class X_ITER : public ITERATOR {
|
||||
public:
|
||||
struct X_ITER : ITERATOR {
|
||||
X_ITER() = default;
|
||||
template <typename U>
|
||||
X_ITER(U *list) : ITERATOR(list) {}
|
||||
@ -40,8 +39,7 @@ public:
|
||||
};
|
||||
|
||||
template <typename CONTAINER, typename ITERATOR, typename CLASSNAME>
|
||||
class X_LIST : public CONTAINER {
|
||||
public:
|
||||
struct X_LIST : CONTAINER {
|
||||
X_LIST() = default;
|
||||
X_LIST(const X_LIST &) = delete;
|
||||
X_LIST &operator=(const X_LIST &) = delete;
|
||||
|
Loading…
Reference in New Issue
Block a user