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>2020-01-19 13:29:44 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-01-19 13:29:44 +0300
commit55cfc22143b67ab0182e31d7f9b14a7ce60f4913 (patch)
tree4ff247466afa1d6c094556e3cc73039e85ba9dab /src/ObjectModel/ObjectModel.h
parent4d5d844fe5d6ed73fd87c325b3d80daddbc5598c (diff)
Added missing noexcept specifiers
Diffstat (limited to 'src/ObjectModel/ObjectModel.h')
-rw-r--r--src/ObjectModel/ObjectModel.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ObjectModel/ObjectModel.h b/src/ObjectModel/ObjectModel.h
index eac396fc..3d73d7d9 100644
--- a/src/ObjectModel/ObjectModel.h
+++ b/src/ObjectModel/ObjectModel.h
@@ -201,7 +201,7 @@ protected:
};
// Function used for compile-time check for the correct number of entries in an object model table
-static inline constexpr size_t ArraySum(const uint8_t *arr, size_t numEntries)
+static inline constexpr size_t ArraySum(const uint8_t *arr, size_t numEntries) noexcept
{
return (numEntries == 0) ? 0 : arr[0] + ArraySum(arr + 1, numEntries - 1);
}
@@ -236,19 +236,19 @@ public:
int IdCompare(const char *id) const noexcept;
// Return true if a section of the OMT is ordered
- static inline constexpr bool IsOrdered(const ObjectModelTableEntry *omt, size_t len)
+ static inline constexpr bool IsOrdered(const ObjectModelTableEntry *omt, size_t len) noexcept
{
return len <= 1 || (strcmp(omt[1].name, omt[0].name) == 1 && IsOrdered(omt + 1, len - 1));
}
// Return true if a section of the OMT specified by the descriptor is ordered
- static inline constexpr bool IsOrdered(uint8_t sectionsLeft, const uint8_t *descriptorSection, const ObjectModelTableEntry *omt)
+ static inline constexpr bool IsOrdered(uint8_t sectionsLeft, const uint8_t *descriptorSection, const ObjectModelTableEntry *omt) noexcept
{
return sectionsLeft == 0 || (IsOrdered(omt, *descriptorSection) && IsOrdered(sectionsLeft - 1, descriptorSection + 1, omt + *descriptorSection));
}
// Return true if the whole OMT is ordered
- static inline constexpr bool IsOrdered(const uint8_t *descriptor, const ObjectModelTableEntry *omt)
+ static inline constexpr bool IsOrdered(const uint8_t *descriptor, const ObjectModelTableEntry *omt) noexcept
{
return IsOrdered(descriptor[0], descriptor + 1, omt);
}