mirror of
https://github.com/espressif/openthread.git
synced 2026-08-15 23:27:47 +00:00
[clang-tidy] readability-avoid-const-params-in-decls (#5717)
This commit is contained in:
@@ -747,7 +747,7 @@ const otCoapOption *otCoapOptionIteratorGetNextOption(otCoapOptionIterator *aIte
|
||||
*
|
||||
* @see otCoapMessageAppendUintOption
|
||||
*/
|
||||
otError otCoapOptionIteratorGetOptionUintValue(otCoapOptionIterator *aIterator, uint64_t *const aValue);
|
||||
otError otCoapOptionIteratorGetOptionUintValue(otCoapOptionIterator *aIterator, uint64_t *aValue);
|
||||
|
||||
/**
|
||||
* This function fills current option value into @p aValue.
|
||||
|
||||
@@ -53,7 +53,7 @@ extern "C" {
|
||||
* @note This number versions both OpenThread platform and user APIs.
|
||||
*
|
||||
*/
|
||||
#define OPENTHREAD_API_VERSION (40)
|
||||
#define OPENTHREAD_API_VERSION (41)
|
||||
|
||||
/**
|
||||
* @addtogroup api-instance
|
||||
|
||||
@@ -119,6 +119,7 @@ readonly OT_CLANG_TIDY_CHECKS="\
|
||||
modernize-use-bool-literals,\
|
||||
modernize-use-equals-delete,\
|
||||
modernize-use-nullptr,\
|
||||
readability-avoid-const-params-in-decls,\
|
||||
readability-make-member-function-const,\
|
||||
readability-simplify-boolean-expr,\
|
||||
"
|
||||
|
||||
@@ -204,7 +204,7 @@ const otCoapOption *otCoapOptionIteratorGetNextOption(otCoapOptionIterator *aIte
|
||||
return iterator.GetOption();
|
||||
}
|
||||
|
||||
otError otCoapOptionIteratorGetOptionUintValue(otCoapOptionIterator *aIterator, uint64_t *const aValue)
|
||||
otError otCoapOptionIteratorGetOptionUintValue(otCoapOptionIterator *aIterator, uint64_t *aValue)
|
||||
{
|
||||
return static_cast<Coap::Option::Iterator *>(aIterator)->ReadOptionValue(*aValue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user