Skip to content

Commit bdc747e

Browse files
committed
Revert auto delegate declaration on lines where there's no collision
1 parent 98e8e2c commit bdc747e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/app/clusters/thermostat-server/thermostat-server.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void TimerExpiredCallback(System::Layer * systemLayer, void * callbackContext)
114114
{
115115
EndpointId endpoint = static_cast<EndpointId>(reinterpret_cast<uintptr_t>(callbackContext));
116116

117-
auto delegate = GetDelegate(endpoint);
117+
Delegate * delegate = GetDelegate(endpoint);
118118
VerifyOrReturn(delegate != nullptr, ChipLogError(Zcl, "Delegate is null. Unable to handle timer expired"));
119119

120120
delegate->ClearPendingPresetList();
@@ -1290,7 +1290,7 @@ bool emberAfThermostatClusterSetActivePresetRequestCallback(
12901290
const Clusters::Thermostat::Commands::SetActivePresetRequest::DecodableType & commandData)
12911291
{
12921292
EndpointId endpoint = commandPath.mEndpointId;
1293-
auto delegate = GetDelegate(endpoint);
1293+
Delegate * delegate = GetDelegate(endpoint);
12941294

12951295
if (delegate == nullptr)
12961296
{
@@ -1380,7 +1380,7 @@ void handleAtomicBegin(CommandHandler * commandObj, const ConcreteCommandPath &
13801380
{
13811381
EndpointId endpoint = commandPath.mEndpointId;
13821382

1383-
auto delegate = GetDelegate(endpoint);
1383+
Delegate * delegate = GetDelegate(endpoint);
13841384

13851385
if (delegate == nullptr)
13861386
{
@@ -1565,7 +1565,7 @@ void handleAtomicCommit(CommandHandler * commandObj, const ConcreteCommandPath &
15651565
return;
15661566
}
15671567

1568-
auto delegate = GetDelegate(endpoint);
1568+
Delegate * delegate = GetDelegate(endpoint);
15691569

15701570
if (delegate == nullptr)
15711571
{
@@ -1598,7 +1598,7 @@ void handleAtomicRollback(CommandHandler * commandObj, const ConcreteCommandPath
15981598
return;
15991599
}
16001600

1601-
auto delegate = GetDelegate(endpoint);
1601+
Delegate * delegate = GetDelegate(endpoint);
16021602

16031603
if (delegate == nullptr)
16041604
{
@@ -1882,7 +1882,7 @@ void MatterThermostatPluginServerInitCallback()
18821882
void MatterThermostatClusterServerShutdownCallback(EndpointId endpoint)
18831883
{
18841884
ChipLogProgress(Zcl, "Shutting down thermostat server cluster on endpoint %d", endpoint);
1885-
auto delegate = GetDelegate(endpoint);
1885+
Delegate * delegate = GetDelegate(endpoint);
18861886

18871887
if (delegate != nullptr)
18881888
{

0 commit comments

Comments
 (0)