update window_scene/session_manager/src/scene_session_manager.cpp.

Signed-off-by: ZihaoWU <wuzihao11@huawei.com>
This commit is contained in:
ZihaoWU 2024-11-14 14:40:35 +00:00 committed by Gitee
parent 0e9fd32385
commit 9b323b47e4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -7887,7 +7887,7 @@ void SceneSessionManager::DealwithDrawingContentChange(const std::vector<std::pa
bool SceneSessionManager::GetSpecifiedDrawingData(uint64_t surfaceId, int32_t& pid, int32_t& uid)
{
auto it = std::find_if(lastDrawingSessionInfoVec_.begin(), lastDrawingSessionInfoVec_.end(),
[surfaceId](const DrawingSessionIdInfo& info) { return info.surfaceId_ == surfaceId; });
[surfaceId](const DrawingSessionInfo& info) { return info.surfaceId_ == surfaceId; });
if (it != lastDrawingSessionInfoVec_.end()) {
pid = it->pid_;
uid = it->uid_;
@ -7899,7 +7899,7 @@ bool SceneSessionManager::GetSpecifiedDrawingData(uint64_t surfaceId, int32_t& p
void SceneSessionManager::RemoveSpecifiedDrawingData(uint64_t surfaceId)
{
auto it = std::find_if(lastDrawingSessionInfoVec_.begin(), lastDrawingSessionInfoVec_.end(),
[surfaceId](const DrawingSessionIdInfo& info) { return info.surfaceId_ == surfaceId; });
[surfaceId](const DrawingSessionInfo& info) { return info.surfaceId_ == surfaceId; });
if (it != lastDrawingSessionInfoVec_.end()) {
lastDrawingSessionInfoVec_.erase(it);
}