Skip to content

Commit

Permalink
compile fix after renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
yyzhong-g committed May 7, 2024
1 parent 20271bf commit 75de07b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/app/CommandHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -804,10 +804,10 @@ FabricIndex CommandHandler::GetAccessingFabricIndex() const

void CommandHandler::Handle::Init(CommandHandler * handler)
{
if (handle != nullptr)
if (handler != nullptr)
{
handle->IncrementHoldOff(this);
mpHandler = handle;
handler->IncrementHoldOff(this);
mpHandler = handler;
}
}

Expand All @@ -830,7 +830,7 @@ void CommandHandler::Handle::Release()

CommandHandler::Handle::Handle(CommandHandler * handler)
{
Init(handle);
Init(handler);
}

CHIP_ERROR CommandHandler::FinalizeInvokeResponseMessageAndPrepareNext()
Expand Down
2 changes: 1 addition & 1 deletion src/app/CommandHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class CommandHandler
handle.Release();
}
Handle(decltype(nullptr)) {}
Handle(CommandHandler * handle);
Handle(CommandHandler * handler);
~Handle() { Release(); }

Handle & operator=(Handle && handle)
Expand Down

0 comments on commit 75de07b

Please sign in to comment.