Skip to content
Snippets Groups Projects
Unverified Commit 35ea734d authored by Grigoris Pavlakis's avatar Grigoris Pavlakis
Browse files

Initialize ptc, pfc and pointer values in default constructor

As suggested by clang-tidy
parent 51d36f1c
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,11 @@ class Parameter {
public:
ValueType currentValue = 0; // Last good value of the parameter. TODO: Find a way to store arbitrary types
Parameter() = default;
Parameter() {
ptc = 0;
pfc = 0;
ptr = nullptr;
}
Parameter(uint8_t new_ptc, uint8_t new_pfc, uint32_t initialValue = 0, UpdatePtr new_ptr = nullptr) {
ptc = new_ptc;
pfc = new_pfc;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment