Skip to content

Commit

Permalink
BlamerBundle: Add declaration for copy assignment operator
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 assignment operator in class BlamerBundle.
    It is good practice to match a copy constructor
    with a copy assignment operator.

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Oct 18, 2018
1 parent e3658bb commit f0c9b75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ccstruct/blamer.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ struct BlamerBundle {
void SetMisAdaptionDebug(const WERD_CHOICE *best_choice, bool debug);

private:
// Copy assignment operator (currently unused, therefore private).
BlamerBundle& operator=(const BlamerBundle& other);
void SetBlame(IncorrectResultReason irr, const STRING &msg,
const WERD_CHOICE *choice, bool debug) {
incorrect_result_reason_ = irr;
Expand Down

0 comments on commit f0c9b75

Please sign in to comment.