code check

Signed-off-by: MisterE <smart_e@126.com>
This commit is contained in:
MisterE 2024-09-12 18:30:16 +08:00
commit df633f3094
3 changed files with 5 additions and 3 deletions

View File

@ -208,7 +208,8 @@ int32_t DSchedContinueManager::ContinueMission(const DSchedContinueInfo& continu
#ifdef SUPPORT_DISTRIBUTED_MISSION_MANAGER
if (localDevId == srcDeviceId) {
int32_t missionId = -1;
int32_t ret = DMSContinueSendMgr::GetInstance().GetMissionIdByBundleName(continueInfo.sinkBundleName_, missionId);
int32_t ret = DMSContinueSendMgr::GetInstance().GetMissionIdByBundleName(
continueInfo.sinkBundleName_, missionId);
if (ret != ERR_OK) {
HILOGE("get missionId fail, ret %{public}d.", ret);
return ret;

View File

@ -387,7 +387,7 @@ void DMSContinueRecvMgr::PushLatRecvCache(currentIconInfo &lastRecvInfo)
}
void DMSContinueRecvMgr::NotifyRecvBroadcast(const sptr<IRemoteObject>& obj,
const currentIconInfo& continueInfo, const int32_t state)
const currentIconInfo& continueInfo, const int32_t state)
{
std::string networkId = continueInfo.senderNetworkId;
std::string srcBundleName = continueInfo.sourceBundleName;

View File

@ -365,7 +365,8 @@ HWTEST_F(DMSContinueManagerTest, testVerifyBroadcastSource001, TestSize.Level3)
EXPECT_EQ(ret, ERR_OK);
state = INACTIVE;
ret = DMSContinueRecvMgr::GetInstance().VerifyBroadcastSource(networkId, sourceBundleName, sinkBundleName, continueType, state);
ret = DMSContinueRecvMgr::GetInstance().VerifyBroadcastSource(
networkId, sourceBundleName, sinkBundleName, continueType, state);
EXPECT_EQ(ret, ERR_OK);
}