Skip to content

Commit

Permalink
ROW: Add declaration for copy constructor
Browse files Browse the repository at this point in the history
It does not need an implementation as it is currently not used.

This fixes a warning from LGTM:

    No matching copy constructor in class ROW.
    It is good practice to match a copy assignment operator
    with a copy constructor.

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Oct 18, 2018
1 parent a1f0c66 commit 5585ed8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ccstruct/ocrrow.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ class ROW:public ELIST_LINK
ROW& operator= (const ROW & source);

private:
// Copy constructor (currently unused, therefore private).
ROW(const ROW& source);

int32_t kerning; //inter char gap
int32_t spacing; //inter word gap
TBOX bound_box; //bounding box
Expand Down

0 comments on commit 5585ed8

Please sign in to comment.