Skip to content

Commit f0c9b75

Browse files
committed
BlamerBundle: Add declaration for copy assignment operator
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]>
1 parent e3658bb commit f0c9b75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ccstruct/blamer.h

+2
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ struct BlamerBundle {
289289
void SetMisAdaptionDebug(const WERD_CHOICE *best_choice, bool debug);
290290

291291
private:
292+
// Copy assignment operator (currently unused, therefore private).
293+
BlamerBundle& operator=(const BlamerBundle& other);
292294
void SetBlame(IncorrectResultReason irr, const STRING &msg,
293295
const WERD_CHOICE *choice, bool debug) {
294296
incorrect_result_reason_ = irr;

0 commit comments

Comments
 (0)