diff --git a/services/implementation/include/authentication_v2/dm_freeze_process.h b/services/implementation/include/authentication_v2/dm_freeze_process.h index 7b844f5addf3cccd76bb6253438093cb39e54bfe..3c254d4e2cd5644c30ea85ac8455c51be4b3920c 100644 --- a/services/implementation/include/authentication_v2/dm_freeze_process.h +++ b/services/implementation/include/authentication_v2/dm_freeze_process.h @@ -71,7 +71,7 @@ private: int32_t CleanBindFailedEvents(int64_t reservedDataTimeStamp); int32_t CleanFreezeState(int64_t reservedDataTimeStamp); int32_t UpdateFreezeState(int64_t nowTime); - void CalculateNextFreezeTime(int64_t nowFreezeTime, int64_t nextFreezeTime); + void CalculateNextFreezeTime(int64_t nowFreezeTime, int64_t &nextFreezeTime); private: DeviceFreezeState freezeStateCache_; diff --git a/services/implementation/src/authentication_v2/dm_freeze_process.cpp b/services/implementation/src/authentication_v2/dm_freeze_process.cpp index ff6b52d75ab6cd00da3d80fa3d6902f08d982c40..3540735831b351a0d862e77f09bde0335513da52 100644 --- a/services/implementation/src/authentication_v2/dm_freeze_process.cpp +++ b/services/implementation/src/authentication_v2/dm_freeze_process.cpp @@ -314,7 +314,7 @@ int32_t FreezeProcess::UpdateFreezeState(int64_t nowTime) return DM_OK; } -void FreezeProcess::CalculateNextFreezeTime(int64_t nowFreezeTime, int64_t nextFreezeTime) +void FreezeProcess::CalculateNextFreezeTime(int64_t nowFreezeTime, int64_t &nextFreezeTime) { switch (nowFreezeTime) { case NOT_FREEZE_TIME: