Skip to content

Commit

Permalink
Make CheckValid const
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Sep 5, 2024
1 parent d2bcc8f commit 0fb9ee6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/parquet/encryption/encryption_internal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class AesEncryptor::AesEncryptorImpl {
}

private:
void CheckValid() {
void CheckValid() const {
if (ctx_ == nullptr) {
throw ParquetException("AesEncryptor was wiped out");
}
Expand Down Expand Up @@ -423,7 +423,7 @@ class AesDecryptor::AesDecryptorImpl {
}

private:
void CheckValid() {
void CheckValid() const {
if (ctx_ == nullptr) {
throw ParquetException("AesDecryptor was wiped out");
}
Expand Down

0 comments on commit 0fb9ee6

Please sign in to comment.