From e3ffb8d3fa306831bc9d6e5e8ace90e41e395f55 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Thu, 16 Feb 2023 22:56:07 -0500 Subject: [PATCH] Fix Linux build issue. --- examples/lock-app/linux/src/LockEndpoint.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/lock-app/linux/src/LockEndpoint.cpp b/examples/lock-app/linux/src/LockEndpoint.cpp index 7f5cf7a22873ad..6c68f9f3a12be0 100644 --- a/examples/lock-app/linux/src/LockEndpoint.cpp +++ b/examples/lock-app/linux/src/LockEndpoint.cpp @@ -462,7 +462,8 @@ bool LockEndpoint::setLockState(DlLockState lockState, const Optional>(userCredential); - DoorLockServer::Instance().SetLockState(mEndpointId, mLockState, opSource, Nullable(userIndex + 1), userCredentials); + DoorLockServer::Instance().SetLockState(mEndpointId, mLockState, opSource, MakeNullable(static_cast(userIndex + 1)), + userCredentials); return true; }