diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-10-31 20:13:29 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-10-31 20:13:29 +0300 |
commit | 9b90cdf445b9893eb93c02317ef87965ec60657f (patch) | |
tree | 4d586fe0b033528dcfaa31477dec2e2cef716c88 /src/bossa/Device.h | |
parent | c0b1908a673e62e8553264f31057843d11a27bc5 (diff) |
Annotations for static analysis
Diffstat (limited to 'src/bossa/Device.h')
-rw-r--r-- | src/bossa/Device.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bossa/Device.h b/src/bossa/Device.h index 755cc9df..452e3ae9 100644 --- a/src/bossa/Device.h +++ b/src/bossa/Device.h @@ -76,20 +76,20 @@ public: #endif }; - Device(Samba& samba) noexcept : _samba(samba), _flash(nullptr), _family(FAMILY_NONE) {} + explicit Device(Samba& samba) noexcept : _samba(samba), _flash(nullptr), _family(FAMILY_NONE) {} virtual ~Device() { delete _flash; } void create() THROWS(GCodeException); Family getFamily() noexcept { return _family; } - BossaFlash* getFlash() noexcept { return _flash; } + BossaFlash* null getFlash() noexcept { return _flash; } void reset() THROWS(GCodeException); private: Samba& _samba; - BossaFlash* _flash; + BossaFlash* null _flash; Family _family; #if ORIGINAL_BOSSA_CODE |