From 0fb9ee62dd784491ef3d9de3079cfae2cb0cf6d9 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Thu, 5 Sep 2024 10:52:16 +0200 Subject: [PATCH] Make CheckValid const --- cpp/src/parquet/encryption/encryption_internal.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); }