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-06-09 11:33:52 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-06-09 11:33:52 +0300
commiteb2e814a76e92405a77267fb71db243f6b6e53d0 (patch)
treef4132b55f5ce667293ed0c3bf94183bedbd101f7 /src/Networking
parentb41de852a65359a6361a50fc4700cb6578ae97c1 (diff)
Added missing 'override' specifiers
Diffstat (limited to 'src/Networking')
-rw-r--r--src/Networking/ESP8266WiFi/WiFiSocket.h25
-rw-r--r--src/Networking/W5500Ethernet/W5500Interface.h2
2 files changed, 14 insertions, 13 deletions
diff --git a/src/Networking/ESP8266WiFi/WiFiSocket.h b/src/Networking/ESP8266WiFi/WiFiSocket.h
index 923f7020..7549e8c4 100644
--- a/src/Networking/ESP8266WiFi/WiFiSocket.h
+++ b/src/Networking/ESP8266WiFi/WiFiSocket.h
@@ -21,21 +21,22 @@ public:
WiFiSocket(NetworkInterface *iface) noexcept;
void Init(SocketNumber n) noexcept;
int State() const noexcept { return (int)state; } // used only for reporting debug info, hence the 'int' return
- void Poll() noexcept;
- void Close() noexcept;
- bool IsClosing() const noexcept { return (state == SocketState::closing); }
- void Terminate() noexcept;
- void TerminateAndDisable() noexcept { Terminate(); }
- bool ReadChar(char& c) noexcept;
- bool ReadBuffer(const uint8_t *&buffer, size_t &len) noexcept;
- void Taken(size_t len) noexcept;
- bool CanRead() const noexcept;
- bool CanSend() const noexcept;
- size_t Send(const uint8_t *data, size_t length) noexcept;
- void Send() noexcept;
void SetNeedsPolling() noexcept { needsPolling = true; }
bool NeedsPolling() const noexcept;
+ void Poll() noexcept override;
+ void Close() noexcept override;
+ bool IsClosing() const noexcept { return (state == SocketState::closing); }
+ void Terminate() noexcept override;
+ void TerminateAndDisable() noexcept override { Terminate(); }
+ bool ReadChar(char& c) noexcept override;
+ bool ReadBuffer(const uint8_t *&buffer, size_t &len) noexcept override;
+ void Taken(size_t len) noexcept override;
+ bool CanRead() const noexcept override;
+ bool CanSend() const noexcept override;
+ size_t Send(const uint8_t *data, size_t length) noexcept override;
+ void Send() noexcept override;
+
private:
enum class SocketState : uint8_t
{
diff --git a/src/Networking/W5500Ethernet/W5500Interface.h b/src/Networking/W5500Ethernet/W5500Interface.h
index fe9de794..e0176891 100644
--- a/src/Networking/W5500Ethernet/W5500Interface.h
+++ b/src/Networking/W5500Ethernet/W5500Interface.h
@@ -41,7 +41,7 @@ public:
GCodeResult EnableInterface(int mode, const StringRef& ssid, const StringRef& reply) noexcept override; // enable or disable the network
GCodeResult EnableProtocol(NetworkProtocol protocol, int port, int secure, const StringRef& reply) noexcept override;
- bool IsProtocolEnabled(NetworkProtocol protocol) noexcept;
+ bool IsProtocolEnabled(NetworkProtocol protocol) noexcept override;
GCodeResult DisableProtocol(NetworkProtocol protocol, const StringRef& reply) noexcept override;
GCodeResult ReportProtocols(const StringRef& reply) const noexcept override;