Skip to content

Fix cppcheck warning about const parameter.#8

Open
PavelNajman wants to merge 1 commit intoBlockchainCommons:masterfrom
PavelNajman:Fix-linter-warning
Open

Fix cppcheck warning about const parameter.#8
PavelNajman wants to merge 1 commit intoBlockchainCommons:masterfrom
PavelNajman:Fix-linter-warning

Conversation

@PavelNajman
Copy link

Before accepting a PR, make lint should pass with no warnings. But cppcheck v1.90 on Ubuntu 20.04.02 LTS gives the following warning:

fountain-decoder.cpp:28:63: style: Parameter 'data' can be declared with const [constParameter]
FountainDecoder::Part::Part(PartIndexes& indexes, ByteVector& data)

This PR fixes the warning by declaring the specified parameter const.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments