Skip to content

Commit 7ec26bb

Browse files
committed
Fix 'type qualifiers ignored on function return type'
1 parent 66ab95e commit 7ec26bb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/include/FlashString/Object.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ template <class ObjectType, typename ElementType> class Object : public ObjectBa
129129
/**
130130
* @brief Get the length of the content in elements
131131
*/
132-
FSTR_INLINE constexpr const size_t length() const
132+
FSTR_INLINE constexpr size_t length() const
133133
{
134134
return ObjectBase::length() / sizeof(ElementType);
135135
}

src/include/FlashString/ObjectBase.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ObjectBase
3535
/**
3636
* @brief Get the length of the object data in bytes
3737
*/
38-
FSTR_INLINE constexpr const size_t length() const
38+
FSTR_INLINE constexpr size_t length() const
3939
{
4040
return flashLength_ & ~lengthInvalid;
4141
}
@@ -44,7 +44,7 @@ class ObjectBase
4444
* @brief Get the object data size in bytes
4545
* @note Always an integer multiple of 4 bytes
4646
*/
47-
FSTR_INLINE constexpr const size_t size() const
47+
FSTR_INLINE constexpr size_t size() const
4848
{
4949
return ALIGNUP4(length());
5050
}
@@ -96,7 +96,7 @@ class ObjectBase
9696
* @brief Indicates an invalid String, used for return value from lookups, etc.
9797
* @note A real String can be zero-length, but it cannot be null
9898
*/
99-
FSTR_INLINE constexpr const bool isNull() const
99+
FSTR_INLINE constexpr bool isNull() const
100100
{
101101
return flashLength_ == lengthInvalid;
102102
}

0 commit comments

Comments
 (0)