Use explicit constructors for base classes
This commit is contained in:
parent
e35689cbaa
commit
3d9815f93d
4 changed files with 5 additions and 5 deletions
|
@ -656,7 +656,7 @@ class LR11x0: public PhysicalLayer {
|
|||
\brief Default constructor.
|
||||
\param mod Instance of Module that will be used to communicate with the radio.
|
||||
*/
|
||||
LR11x0(Module* mod); // cppcheck-suppress noExplicitConstructor
|
||||
explicit LR11x0(Module* mod);
|
||||
|
||||
/*!
|
||||
\brief Whether the module has an XTAL (true) or TCXO (false). Defaults to false.
|
||||
|
|
|
@ -452,7 +452,7 @@ class SX126x: public PhysicalLayer {
|
|||
\brief Default constructor.
|
||||
\param mod Instance of Module that will be used to communicate with the radio.
|
||||
*/
|
||||
SX126x(Module* mod); // cppcheck-suppress noExplicitConstructor
|
||||
explicit SX126x(Module* mod);
|
||||
|
||||
/*!
|
||||
\brief Whether the module has an XTAL (true) or TCXO (false). Defaults to false.
|
||||
|
@ -972,7 +972,7 @@ class SX126x: public PhysicalLayer {
|
|||
\param irqMask Mask indicating which IRQ triggers a DIO
|
||||
\returns \ref status_codes
|
||||
*/
|
||||
int16_t irqRxDoneRxTimeout(uint32_t &irqFlags, uint32_t &irqMask);
|
||||
int16_t irqRxDoneRxTimeout(uint32_t &irqFlags, uint32_t &irqMask) override;
|
||||
|
||||
/*!
|
||||
\brief Check whether the IRQ bit for RxTimeout is set
|
||||
|
|
|
@ -594,7 +594,7 @@ class SX127x: public PhysicalLayer {
|
|||
\brief Default constructor. Called internally when creating new LoRa instance.
|
||||
\param mod Instance of Module that will be used to communicate with the %LoRa chip.
|
||||
*/
|
||||
SX127x(Module* mod); // cppcheck-suppress noExplicitConstructor
|
||||
explicit SX127x(Module* mod);
|
||||
|
||||
// basic methods
|
||||
|
||||
|
|
|
@ -359,7 +359,7 @@ class SX128x: public PhysicalLayer {
|
|||
\brief Default constructor.
|
||||
\param mod Instance of Module that will be used to communicate with the radio.
|
||||
*/
|
||||
SX128x(Module* mod); // cppcheck-suppress noExplicitConstructor
|
||||
explicit SX128x(Module* mod);
|
||||
|
||||
// basic methods
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue