Skip to content

nutclient.cpp: match a copy constructor with a copy assignment…#880

Merged
jimklimov merged 4 commits intonetworkupstools:masterfrom
jimklimov:fightwarn-lgtm-com-cxx-constructors-copiers
Nov 25, 2020
Merged

nutclient.cpp: match a copy constructor with a copy assignment…#880
jimklimov merged 4 commits intonetworkupstools:masterfrom
jimklimov:fightwarn-lgtm-com-cxx-constructors-copiers

Conversation

@jimklimov
Copy link
Copy Markdown
Member

…operator (Device, Variable, Command classes)

Fixes part of LGTM.com suggestions per #823 (comment)

https://lgtm.com/rules/2165180572/

@jimklimov jimklimov added ready / code review Author (and CI) consider the PR worthy of human rewievers' time need testing Code looks reasonable, but the feature would better be tested against hardware or OSes labels Nov 17, 2020
@lgtm-com
Copy link
Copy Markdown

lgtm-com Bot commented Nov 17, 2020

This pull request fixes 3 alerts when merging 3738a7f6129bb5a134776704dcb2f8555b77ae28 into 27e1507 - view on LGTM.com

fixed alerts:

  • 3 for Inconsistent definition of copy constructor and assignment ('Rule of Two')

@jimklimov jimklimov added the C++ label Nov 18, 2020
@jimklimov
Copy link
Copy Markdown
Member Author

jimklimov commented Nov 20, 2020

At least in gnu++17 mode with clang-9, this file shows a lot more different warnings in other aspects of code. The one issue originally posted seems solved (at least syntax-wise, not really tested yet...)

UPDATE: Others addressed in #902

@lgtm-com
Copy link
Copy Markdown

lgtm-com Bot commented Nov 24, 2020

This pull request fixes 3 alerts when merging f4c414a5af14015d9b2e4cd25bb330bd2d32d454 into 58fff85 - view on LGTM.com

fixed alerts:

  • 3 for Inconsistent definition of copy constructor and assignment ('Rule of Two')

@jimklimov jimklimov force-pushed the fightwarn-lgtm-com-cxx-constructors-copiers branch from f4c414a to fd10631 Compare November 24, 2020 23:41
@lgtm-com
Copy link
Copy Markdown

lgtm-com Bot commented Nov 24, 2020

This pull request fixes 3 alerts when merging fd10631 into 58fff85 - view on LGTM.com

fixed alerts:

  • 3 for Inconsistent definition of copy constructor and assignment ('Rule of Two')

@jimklimov jimklimov removed the need testing Code looks reasonable, but the feature would better be tested against hardware or OSes label Nov 25, 2020
@jimklimov jimklimov merged commit 5ec8b18 into networkupstools:master Nov 25, 2020
@jimklimov jimklimov deleted the fightwarn-lgtm-com-cxx-constructors-copiers branch November 25, 2020 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C++ ready / code review Author (and CI) consider the PR worthy of human rewievers' time

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant