Description: fix the cppcheck

IssueNo: https://gitee.com/openharmony/graphic_utils/issues/I5RYU4
Feature or Bugfix: Bugfix
Binary Source:No
Signed-off-by: zhouyj <zhouyuanjie1@huawei.com>
This commit is contained in:
Zhouyj_zju
2022-09-20 15:27:39 +08:00
parent b5cdc986ae
commit d6518af44c
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -217,9 +217,9 @@ uint32_t BufferClientProducer::GetFormat()
return GetAttr(GET_FORMAT);
}
void BufferClientProducer::SetStrideAlignment(uint32_t stride)
void BufferClientProducer::SetStrideAlignment(uint32_t strideAlignment)
{
SetAttr(SET_STRIDE_ALIGNMENT, stride);
SetAttr(SET_STRIDE_ALIGNMENT, strideAlignment);
}
uint32_t BufferClientProducer::GetStrideAlignment()
+2 -2
View File
@@ -318,10 +318,10 @@ uint32_t BufferQueueProducer::GetFormat()
return bufferQueue_->GetFormat();
}
void BufferQueueProducer::SetStrideAlignment(uint32_t stride)
void BufferQueueProducer::SetStrideAlignment(uint32_t strideAlignment)
{
RETURN_IF_FAIL(bufferQueue_);
bufferQueue_->SetStrideAlignment(stride);
bufferQueue_->SetStrideAlignment(strideAlignment);
}
uint32_t BufferQueueProducer::GetStrideAlignment()