Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2021-10-31 20:13:29 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-10-31 20:13:29 +0300
commit9b90cdf445b9893eb93c02317ef87965ec60657f (patch)
tree4d586fe0b033528dcfaa31477dec2e2cef716c88 /src/bossa/Device.h
parentc0b1908a673e62e8553264f31057843d11a27bc5 (diff)
Annotations for static analysis
Diffstat (limited to 'src/bossa/Device.h')
-rw-r--r--src/bossa/Device.h6
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