[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:
Li Cao
2024-04-29 14:15:50 -07:00
committed by GitHub
parent f049648c3f
commit da72435f3a
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ template <> otError Dns::Process<Cmd("compression")>(Arg aArgs[])
{ {
bool enable; bool enable;
SuccessOrExit(error = Interpreter::ParseEnableOrDisable(aArgs[0], enable)); SuccessOrExit(error = ParseEnableOrDisable(aArgs[0], enable));
otDnsSetNameCompressionEnabled(enable); otDnsSetNameCompressionEnabled(enable);
} }
+2 -2
View File
@@ -89,7 +89,7 @@ template <> otError SrpClient::Process<Cmd("autostart")>(Arg aArgs[])
ExitNow(); ExitNow();
} }
SuccessOrExit(error = Interpreter::ParseEnableOrDisable(aArgs[0], enable)); SuccessOrExit(error = ParseEnableOrDisable(aArgs[0], enable));
/** /**
* @cli srp client autostart enable * @cli srp client autostart enable
@@ -173,7 +173,7 @@ template <> otError SrpClient::Process<Cmd("callback")>(Arg aArgs[])
ExitNow(); ExitNow();
} }
error = Interpreter::ParseEnableOrDisable(aArgs[0], mCallbackEnabled); error = ParseEnableOrDisable(aArgs[0], mCallbackEnabled);
exit: exit:
return error; return error;
+1 -1
View File
@@ -360,7 +360,7 @@ template <> otError UdpExample::Process<Cmd("linksecurity")>(Arg aArgs[])
*/ */
else else
{ {
error = Interpreter::ParseEnableOrDisable(aArgs[0], mLinkSecurityEnabled); error = ParseEnableOrDisable(aArgs[0], mLinkSecurityEnabled);
} }
return error; return error;