Skip to content

Commit 1c51b36

Browse files
restyled-commitserwinpan1
authored andcommitted
Restyled by clang-format
1 parent bca692b commit 1c51b36

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

examples/chef/common/clusters/door-lock/chef-doorlock-stubs.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
* limitations under the License.
1717
*/
1818

19-
#include <app/util/af.h>
2019
#include <app/data-model/Nullable.h>
20+
#include <app/util/af.h>
2121
#include <lib/core/DataModelTypes.h>
2222

2323
#ifdef MATTER_DM_PLUGIN_DOOR_LOCK_SERVER
24-
#include <app/clusters/door-lock-server/door-lock-server.h>
2524
#include "chef-lock-manager.h"
25+
#include <app/clusters/door-lock-server/door-lock-server.h>
2626

2727
using namespace chip;
2828
using namespace chip::app::Clusters;

examples/chef/common/clusters/door-lock/chef-lock-endpoint.cpp

+9-10
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@
1616
* limitations under the License.
1717
*/
1818

19-
20-
#include <cstring>
21-
#include <app/util/af.h>
2219
#include <app-common/zap-generated/attributes/Accessors.h>
20+
#include <app/util/af.h>
21+
#include <cstring>
2322
#include <platform/CHIPDeviceLayer.h>
2423
#include <platform/internal/CHIPDeviceLayerInternal.h>
2524

@@ -149,14 +148,14 @@ bool LockEndpoint::SetUser(uint16_t userIndex, chip::FabricIndex creator, chip::
149148
return false;
150149
}
151150

152-
userInStorage.userName = chip::MutableCharSpan(userInStorage.userNameBuf, DOOR_LOCK_USER_NAME_BUFFER_SIZE);
151+
userInStorage.userName = chip::MutableCharSpan(userInStorage.userNameBuf, DOOR_LOCK_USER_NAME_BUFFER_SIZE);
153152
CopyCharSpanToMutableCharSpan(userName, userInStorage.userName);
154-
userInStorage.userUniqueId = uniqueId;
155-
userInStorage.userStatus = userStatus;
156-
userInStorage.userType = usertype;
157-
userInStorage.credentialRule = credentialRule;
158-
userInStorage.lastModifiedBy = modifier;
159-
userInStorage.createdBy = creator;
153+
userInStorage.userUniqueId = uniqueId;
154+
userInStorage.userStatus = userStatus;
155+
userInStorage.userType = usertype;
156+
userInStorage.credentialRule = credentialRule;
157+
userInStorage.lastModifiedBy = modifier;
158+
userInStorage.createdBy = creator;
160159

161160
userInStorage.credentials.clear();
162161
for (size_t i = 0; i < totalCredentials; ++i)

examples/chef/common/clusters/door-lock/chef-lock-manager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18-
#include <iostream>
1918
#include <app/util/af.h>
19+
#include <iostream>
2020
#include <lib/support/logging/CHIPLogging.h>
2121

2222
#ifdef MATTER_DM_PLUGIN_DOOR_LOCK_SERVER

0 commit comments

Comments
 (0)