add const qualifiers for CreateBatch() (#3800)

This commit is contained in:
JinmingHu 2022-07-06 15:43:09 +08:00 committed by GitHub
parent 803dfb5938
commit cb1c35eb77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -291,7 +291,7 @@ namespace Azure { namespace Storage { namespace Blobs {
*
* @return A new batch object.
*/
BlobContainerBatch CreateBatch();
BlobContainerBatch CreateBatch() const;
/**
* @brief Submits a batch of subrequests.

View File

@ -251,7 +251,7 @@ namespace Azure { namespace Storage { namespace Blobs {
*
* @return A new batch object.
*/
BlobServiceBatch CreateBatch();
BlobServiceBatch CreateBatch() const;
/**
* @brief Submits a batch of subrequests.

View File

@ -467,7 +467,7 @@ namespace Azure { namespace Storage { namespace Blobs {
std::move(blockBlobClient), std::move(response.RawResponse));
}
BlobContainerBatch BlobContainerClient::CreateBatch() { return BlobContainerBatch(*this); }
BlobContainerBatch BlobContainerClient::CreateBatch() const { return BlobContainerBatch(*this); }
Response<Models::SubmitBlobBatchResult> BlobContainerClient::SubmitBatch(
const BlobContainerBatch& batch,

View File

@ -310,7 +310,7 @@ namespace Azure { namespace Storage { namespace Blobs {
std::move(blobContainerClient), std::move(response.RawResponse));
}
BlobServiceBatch BlobServiceClient::CreateBatch() { return BlobServiceBatch(*this); }
BlobServiceBatch BlobServiceClient::CreateBatch() const { return BlobServiceBatch(*this); }
Response<Models::SubmitBlobBatchResult> BlobServiceClient::SubmitBatch(
const BlobServiceBatch& batch,