Skip to content

Commit

Permalink
Use default keyword instead of empty ctors/dtors. Add more default.
Browse files Browse the repository at this point in the history
  • Loading branch information
zamazan4ik committed May 21, 2018
1 parent 785b5e8 commit d14a7ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/ccmain/paramsd.h
Expand Up @@ -52,8 +52,7 @@ class ParamContent : public ELIST_LINK {
static ParamContent* GetParamContentById(int id);

// Constructors for the various ParamTypes.
ParamContent() {
}
ParamContent() = default;
explicit ParamContent(tesseract::StringParam* it);
explicit ParamContent(tesseract::IntParam* it);
explicit ParamContent(tesseract::BoolParam* it);
Expand Down
2 changes: 1 addition & 1 deletion src/ccmain/resultiterator.h
Expand Up @@ -43,7 +43,7 @@ class TESS_API ResultIterator : public LTRResultIterator {
* ResultIterator is copy constructible!
* The default copy constructor works just fine for us.
*/
virtual ~ResultIterator() {}
virtual ~ResultIterator() = default;

// ============= Moving around within the page ============.
/**
Expand Down

0 comments on commit d14a7ca

Please sign in to comment.