diff options
| author | 2021-03-17 13:34:43 +0000 | |
|---|---|---|
| committer | 2021-03-17 13:34:43 +0000 | |
| commit | 3b71f2068e69b624887cf0e741a466e6cc39349a (patch) | |
| tree | 4d8095d9244de64b63685e8a5d98623c8cda4445 /src/modules/m_topiclock.cpp | |
| parent | Add a forwarding overload of SimpleExtItem#Set. (diff) | |
Mark {From,To}{Human,Internal,Network} as noexcept.
Diffstat (limited to 'src/modules/m_topiclock.cpp')
| -rw-r--r-- | src/modules/m_topiclock.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_topiclock.cpp b/src/modules/m_topiclock.cpp index a0e96c0f4..01060d22c 100644 --- a/src/modules/m_topiclock.cpp +++ b/src/modules/m_topiclock.cpp @@ -88,18 +88,18 @@ class FlagExtItem : public ExtensionItem return (GetRaw(container) != NULL); } - std::string ToHuman(const Extensible* container, void* item) const override + std::string ToHuman(const Extensible* container, void* item) const noexcept override { // Make the human version more readable. return "true"; } - std::string ToNetwork(const Extensible* container, void* item) const override + std::string ToNetwork(const Extensible* container, void* item) const noexcept override { return "1"; } - void FromNetwork(Extensible* container, const std::string& value) override + void FromNetwork(Extensible* container, const std::string& value) noexcept override { if (value == "1") SetRaw(container, this); |
