From c7cd21f8b73f0f7dfced7ac05fa00ed340baf6c2 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Wed, 20 Mar 2019 11:46:11 -0700 Subject: [PATCH] [style] remove const values in declarations (#3705) --- include/openthread/link_raw.h | 4 ++-- src/core/common/logging.hpp | 2 +- src/core/meshcop/dataset.hpp | 2 +- src/core/meshcop/dataset_local.hpp | 2 +- src/core/meshcop/dataset_manager.hpp | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/openthread/link_raw.h b/include/openthread/link_raw.h index 33ffd1350..c8349d614 100644 --- a/include/openthread/link_raw.h +++ b/include/openthread/link_raw.h @@ -267,7 +267,7 @@ otError otLinkRawSrcMatchEnable(otInstance *aInstance, bool aEnable); * @retval OT_ERROR_INVALID_STATE If the raw link-layer isn't enabled. * */ -otError otLinkRawSrcMatchAddShortEntry(otInstance *aInstance, const uint16_t aShortAddress); +otError otLinkRawSrcMatchAddShortEntry(otInstance *aInstance, uint16_t aShortAddress); /** * Adding extended address to the source match table. @@ -293,7 +293,7 @@ otError otLinkRawSrcMatchAddExtEntry(otInstance *aInstance, const otExtAddress * * @retval OT_ERROR_INVALID_STATE If the raw link-layer isn't enabled. * */ -otError otLinkRawSrcMatchClearShortEntry(otInstance *aInstance, const uint16_t aShortAddress); +otError otLinkRawSrcMatchClearShortEntry(otInstance *aInstance, uint16_t aShortAddress); /** * Removing extended address to the source match table of the radio. diff --git a/src/core/common/logging.hpp b/src/core/common/logging.hpp index 9e09fc287..b3c610838 100644 --- a/src/core/common/logging.hpp +++ b/src/core/common/logging.hpp @@ -1888,7 +1888,7 @@ extern "C" { * @param[in] aLength Number of bytes to print. * */ -void otDump(otLogLevel aLevel, otLogRegion aRegion, const char *aId, const void *aBuf, const size_t aLength); +void otDump(otLogLevel aLevel, otLogRegion aRegion, const char *aId, const void *aBuf, size_t aLength); /** * This function converts a log level to a prefix string for appending to log message. diff --git a/src/core/meshcop/dataset.hpp b/src/core/meshcop/dataset.hpp index e4a8071c8..e4e4adf2a 100644 --- a/src/core/meshcop/dataset.hpp +++ b/src/core/meshcop/dataset.hpp @@ -63,7 +63,7 @@ public: * @param[in] aType The type of the dataset, active or pending. * */ - explicit Dataset(const Tlv::Type aType); + explicit Dataset(Tlv::Type aType); /** * This method clears the Dataset. diff --git a/src/core/meshcop/dataset_local.hpp b/src/core/meshcop/dataset_local.hpp index a722be646..e75de3d3e 100644 --- a/src/core/meshcop/dataset_local.hpp +++ b/src/core/meshcop/dataset_local.hpp @@ -54,7 +54,7 @@ public: * @param[in] aType The type of the dataset, active or pending. * */ - DatasetLocal(Instance &aInstance, const Tlv::Type aType); + DatasetLocal(Instance &aInstance, Tlv::Type aType); /** * This method indicates whether this is an Active or Pending Dataset. diff --git a/src/core/meshcop/dataset_manager.hpp b/src/core/meshcop/dataset_manager.hpp index 3e23cff86..82272f489 100644 --- a/src/core/meshcop/dataset_manager.hpp +++ b/src/core/meshcop/dataset_manager.hpp @@ -173,7 +173,7 @@ protected: * */ DatasetManager(Instance & aInstance, - const Tlv::Type aType, + Tlv::Type aType, const char * aUriGet, const char * aUriSet, TimerMilli::Handler aTimerHandler);