@@ -233,19 +233,17 @@ namespace azure { namespace storage {
233
233
// / </summary>
234
234
// / <param name="account_name">A string containing the name of the storage account.</param>
235
235
// / <param name="account_key">A string containing the Base64-encoded account access key.</param>
236
- storage_credentials (utility::string_t account_name, const utility::string_t & account_key) : m_account_name(std::move(account_name)), m_account_key_credential(std::make_shared<account_key_credential>())
236
+ storage_credentials (utility::string_t account_name, const utility::string_t & account_key) : m_account_name(std::move(account_name)), m_account_key_credential(std::make_shared<account_key_credential>(utility::conversions::from_base64(account_key) ))
237
237
{
238
- m_account_key_credential->m_account_key = std::move (utility::conversions::from_base64 (account_key));
239
238
}
240
239
241
240
// / <summary>
242
241
// / Initializes a new instance of the <see cref="azure::storage::storage_credentials" /> class with the specified account name and key value.
243
242
// / </summary>
244
243
// / <param name="account_name">A string containing the name of the storage account.</param>
245
244
// / <param name="account_key">An array of bytes that represent the account access key.</param>
246
- storage_credentials (utility::string_t account_name, std::vector<uint8_t > account_key) : m_account_name(std::move(account_name)), m_account_key_credential(std::make_shared<account_key_credential>())
245
+ storage_credentials (utility::string_t account_name, std::vector<uint8_t > account_key) : m_account_name(std::move(account_name)), m_account_key_credential(std::make_shared<account_key_credential>(std::move(account_key) ))
247
246
{
248
- m_account_key_credential->m_account_key = std::move (account_key);
249
247
}
250
248
251
249
class sas_credential
@@ -410,7 +408,7 @@ namespace azure { namespace storage {
410
408
}
411
409
412
410
// / <summary>
413
- // / Sets the accounts for the credentials.
411
+ // / Sets the account key for the credentials.
414
412
// / </summary>
415
413
// / <param name="account_key">A string containing the Base64-encoded account access key.</param>
416
414
void set_account_key (const utility::string_t & account_key)
@@ -419,7 +417,7 @@ namespace azure { namespace storage {
419
417
}
420
418
421
419
// / <summary>
422
- // / Sets the accounts for the credentials.
420
+ // / Sets the account key for the credentials.
423
421
// / </summary>
424
422
// / <param name="account_key">An array of bytes that represent the account access key.</param>
425
423
void set_account_key (std::vector<uint8_t > account_key)
0 commit comments