diff --git a/cpp/src/parquet/encryption/encryption_internal.cc b/cpp/src/parquet/encryption/encryption_internal.cc index 542741fa98178..31cad130a10c7 100644 --- a/cpp/src/parquet/encryption/encryption_internal.cc +++ b/cpp/src/parquet/encryption/encryption_internal.cc @@ -89,7 +89,7 @@ class AesEncryptor::AesEncryptorImpl { } private: - void CheckValid() { + void CheckValid() const { if (ctx_ == nullptr) { throw ParquetException("AesEncryptor was wiped out"); } @@ -423,7 +423,7 @@ class AesDecryptor::AesDecryptorImpl { } private: - void CheckValid() { + void CheckValid() const { if (ctx_ == nullptr) { throw ParquetException("AesDecryptor was wiped out"); }