[coap] remove unneeded namespace binding (#3207)

This commit is contained in:
Łukasz Duda
2018-10-25 10:21:34 -07:00
committed by Jonathan Hui
parent 38ffdea2fe
commit 9e1fa5957c
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -282,10 +282,10 @@ otError Header::AppendObserveOption(uint32_t aObserve)
otError Header::AppendUriPathOptions(const char *aUriPath)
{
otError error = OT_ERROR_NONE;
const char * cur = aUriPath;
const char * end;
Header::Option coapOption;
otError error = OT_ERROR_NONE;
const char *cur = aUriPath;
const char *end;
Option coapOption;
coapOption.mNumber = OT_COAP_OPTION_URI_PATH;
@@ -397,7 +397,7 @@ const Header::Option *Header::GetNextOption(void)
mOption.mLength = optionLength;
mOption.mValue = mHeader.mBytes + mNextOptionOffset;
mNextOptionOffset += optionLength;
rval = static_cast<Header::Option *>(&mOption);
rval = static_cast<Option *>(&mOption);
exit:
return rval;
+1 -1
View File
@@ -145,7 +145,7 @@ public:
* @returns The Type value.
*
*/
Type GetType(void) const { return static_cast<Header::Type>(mHeader.mFields.mVersionTypeToken & kTypeMask); }
Type GetType(void) const { return static_cast<Type>(mHeader.mFields.mVersionTypeToken & kTypeMask); }
/**
* This method sets the Type value.