mirror of
https://github.com/espressif/openthread.git
synced 2026-08-17 16:09:51 +00:00
[cli] fix namespace usage (#10088)
The method `ParseEnableOrDisable` has been moved to the `Utils` class and these components inherit the `Utils` class so there is no need to add namespace.
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@ template <> otError Dns::Process<Cmd("compression")>(Arg aArgs[])
|
||||
{
|
||||
bool enable;
|
||||
|
||||
SuccessOrExit(error = Interpreter::ParseEnableOrDisable(aArgs[0], enable));
|
||||
SuccessOrExit(error = ParseEnableOrDisable(aArgs[0], enable));
|
||||
otDnsSetNameCompressionEnabled(enable);
|
||||
}
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ template <> otError SrpClient::Process<Cmd("autostart")>(Arg aArgs[])
|
||||
ExitNow();
|
||||
}
|
||||
|
||||
SuccessOrExit(error = Interpreter::ParseEnableOrDisable(aArgs[0], enable));
|
||||
SuccessOrExit(error = ParseEnableOrDisable(aArgs[0], enable));
|
||||
|
||||
/**
|
||||
* @cli srp client autostart enable
|
||||
@@ -173,7 +173,7 @@ template <> otError SrpClient::Process<Cmd("callback")>(Arg aArgs[])
|
||||
ExitNow();
|
||||
}
|
||||
|
||||
error = Interpreter::ParseEnableOrDisable(aArgs[0], mCallbackEnabled);
|
||||
error = ParseEnableOrDisable(aArgs[0], mCallbackEnabled);
|
||||
|
||||
exit:
|
||||
return error;
|
||||
|
||||
+1
-1
@@ -360,7 +360,7 @@ template <> otError UdpExample::Process<Cmd("linksecurity")>(Arg aArgs[])
|
||||
*/
|
||||
else
|
||||
{
|
||||
error = Interpreter::ParseEnableOrDisable(aArgs[0], mLinkSecurityEnabled);
|
||||
error = ParseEnableOrDisable(aArgs[0], mLinkSecurityEnabled);
|
||||
}
|
||||
|
||||
return error;
|
||||
|
||||
Reference in New Issue
Block a user