diff --git a/frameworks/test/moduletest/mock/blob.cpp b/frameworks/test/moduletest/mock/blob.cpp index 540888d0f6f0bddd56e2f06b1af89b6658802a38..31b20ed2d6307c68edc6522081f622cb9d4845af 100644 --- a/frameworks/test/moduletest/mock/blob.cpp +++ b/frameworks/test/moduletest/mock/blob.cpp @@ -172,7 +172,7 @@ Blob *Blob::Unmarshalling(Parcel &parcel) } /* write blob size and data to memory buffer. return error when bufferLeftSize not enough. */ -bool Blob::WriteToBuffer(uint8_t *&cursorPtr, int &bufferLeftSize) const +bool Blob::WriteToBuffer(uint8_t *&cursorPtr, int bufferLeftSize) const { if (cursorPtr == nullptr || bufferLeftSize < static_cast(blob_.size() + sizeof(int))) { return false; diff --git a/services/ans/test/unittest/mock/blob.cpp b/services/ans/test/unittest/mock/blob.cpp index 540888d0f6f0bddd56e2f06b1af89b6658802a38..31b20ed2d6307c68edc6522081f622cb9d4845af 100644 --- a/services/ans/test/unittest/mock/blob.cpp +++ b/services/ans/test/unittest/mock/blob.cpp @@ -172,7 +172,7 @@ Blob *Blob::Unmarshalling(Parcel &parcel) } /* write blob size and data to memory buffer. return error when bufferLeftSize not enough. */ -bool Blob::WriteToBuffer(uint8_t *&cursorPtr, int &bufferLeftSize) const +bool Blob::WriteToBuffer(uint8_t *&cursorPtr, int bufferLeftSize) const { if (cursorPtr == nullptr || bufferLeftSize < static_cast(blob_.size() + sizeof(int))) { return false; diff --git a/services/test/moduletest/mock/blob.cpp b/services/test/moduletest/mock/blob.cpp index 540888d0f6f0bddd56e2f06b1af89b6658802a38..31b20ed2d6307c68edc6522081f622cb9d4845af 100644 --- a/services/test/moduletest/mock/blob.cpp +++ b/services/test/moduletest/mock/blob.cpp @@ -172,7 +172,7 @@ Blob *Blob::Unmarshalling(Parcel &parcel) } /* write blob size and data to memory buffer. return error when bufferLeftSize not enough. */ -bool Blob::WriteToBuffer(uint8_t *&cursorPtr, int &bufferLeftSize) const +bool Blob::WriteToBuffer(uint8_t *&cursorPtr, int bufferLeftSize) const { if (cursorPtr == nullptr || bufferLeftSize < static_cast(blob_.size() + sizeof(int))) { return false;