EnricoMi commented on code in PR #46017:
URL: https://github.com/apache/arrow/pull/46017#discussion_r2037668281
##########
cpp/src/parquet/encryption/internal_file_encryptor.h:
##########
@@ -36,7 +36,7 @@ class ColumnEncryptionProperties;
class PARQUET_EXPORT Encryptor {
public:
- Encryptor(encryption::AesEncryptor* aes_encryptor, const std::string& key,
+ Encryptor(encryption::AesEncryptor* aes_encryptor, const
encryption::SecureString& key,
const std::string& file_aad, const std::string& aad,
::arrow::MemoryPool* pool);
Review Comment:
I think the rational here is that the value is being copied anyway, either
from the `const T&`, or when calling by value. Your way does not hide that fact
from the API.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]