From cb1c35eb7771107dffa3b574f77349c63c3c3866 Mon Sep 17 00:00:00 2001 From: JinmingHu Date: Wed, 6 Jul 2022 15:43:09 +0800 Subject: [PATCH] add const qualifiers for CreateBatch() (#3800) --- .../inc/azure/storage/blobs/blob_container_client.hpp | 2 +- .../inc/azure/storage/blobs/blob_service_client.hpp | 2 +- sdk/storage/azure-storage-blobs/src/blob_container_client.cpp | 2 +- sdk/storage/azure-storage-blobs/src/blob_service_client.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_container_client.hpp b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_container_client.hpp index 53ff7006d..e25d3c823 100644 --- a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_container_client.hpp +++ b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_container_client.hpp @@ -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. diff --git a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_service_client.hpp b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_service_client.hpp index 2ea2d7cc4..b433bdfd6 100644 --- a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_service_client.hpp +++ b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_service_client.hpp @@ -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. diff --git a/sdk/storage/azure-storage-blobs/src/blob_container_client.cpp b/sdk/storage/azure-storage-blobs/src/blob_container_client.cpp index 7b02522be..b79eab00a 100644 --- a/sdk/storage/azure-storage-blobs/src/blob_container_client.cpp +++ b/sdk/storage/azure-storage-blobs/src/blob_container_client.cpp @@ -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 BlobContainerClient::SubmitBatch( const BlobContainerBatch& batch, diff --git a/sdk/storage/azure-storage-blobs/src/blob_service_client.cpp b/sdk/storage/azure-storage-blobs/src/blob_service_client.cpp index 518712335..d6c3b428d 100644 --- a/sdk/storage/azure-storage-blobs/src/blob_service_client.cpp +++ b/sdk/storage/azure-storage-blobs/src/blob_service_client.cpp @@ -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 BlobServiceClient::SubmitBatch( const BlobServiceBatch& batch,