Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and erwinpan1 committed Mar 12, 2024
1 parent cbb667b commit 03a1a67
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
* limitations under the License.
*/

#include <app/util/af.h>
#include <app/data-model/Nullable.h>
#include <app/util/af.h>
#include <lib/core/DataModelTypes.h>

#ifdef MATTER_DM_PLUGIN_DOOR_LOCK_SERVER
#include <app/clusters/door-lock-server/door-lock-server.h>
#include "chef-lock-manager.h"
#include <app/clusters/door-lock-server/door-lock-server.h>

using namespace chip;
using namespace chip::app::Clusters;
Expand Down
19 changes: 9 additions & 10 deletions examples/chef/common/clusters/door-lock/chef-lock-endpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@
* limitations under the License.
*/


#include <cstring>
#include <app/util/af.h>
#include <app-common/zap-generated/attributes/Accessors.h>
#include <app/util/af.h>
#include <cstring>
#include <platform/CHIPDeviceLayer.h>
#include <platform/internal/CHIPDeviceLayerInternal.h>

Expand Down Expand Up @@ -149,14 +148,14 @@ bool LockEndpoint::SetUser(uint16_t userIndex, chip::FabricIndex creator, chip::
return false;
}

userInStorage.userName = chip::MutableCharSpan(userInStorage.userNameBuf, DOOR_LOCK_USER_NAME_BUFFER_SIZE);
userInStorage.userName = chip::MutableCharSpan(userInStorage.userNameBuf, DOOR_LOCK_USER_NAME_BUFFER_SIZE);
CopyCharSpanToMutableCharSpan(userName, userInStorage.userName);
userInStorage.userUniqueId = uniqueId;
userInStorage.userStatus = userStatus;
userInStorage.userType = usertype;
userInStorage.credentialRule = credentialRule;
userInStorage.lastModifiedBy = modifier;
userInStorage.createdBy = creator;
userInStorage.userUniqueId = uniqueId;
userInStorage.userStatus = userStatus;
userInStorage.userType = usertype;
userInStorage.credentialRule = credentialRule;
userInStorage.lastModifiedBy = modifier;
userInStorage.createdBy = creator;

userInStorage.credentials.clear();
for (size_t i = 0; i < totalCredentials; ++i)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <iostream>
#include <app/util/af.h>
#include <iostream>
#include <lib/support/logging/CHIPLogging.h>

#ifdef MATTER_DM_PLUGIN_DOOR_LOCK_SERVER
Expand Down

0 comments on commit 03a1a67

Please sign in to comment.