mirror of
https://github.com/espressif/openthread.git
synced 2026-07-28 06:37:46 +00:00
[cli] move a few static util methods to Cli::Utils class (#10138)
This commit moves a few static util methods from the `Interpreter` class to the `Cli::Utils` class. Since the `Interpreter` class and other classes for cli components inherit the `Cli::Utils`, they can still access these methods. Putting these methods in utils class is more intuitive. This change also makes other cli classes less dependent on the `Interpreter` class.
This commit is contained in:
+1
-1
@@ -383,7 +383,7 @@ template <> otError TcpExample::Process<Cmd("connect")>(Arg aArgs[])
|
||||
|
||||
VerifyOrExit(mInitialized, error = OT_ERROR_INVALID_STATE);
|
||||
|
||||
SuccessOrExit(error = Interpreter::ParseToIp6Address(GetInstancePtr(), aArgs[0], sockaddr.mAddress, nat64Synth));
|
||||
SuccessOrExit(error = ParseToIp6Address(GetInstancePtr(), aArgs[0], sockaddr.mAddress, nat64Synth));
|
||||
|
||||
if (nat64Synth)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user