Skip to content

Commit

Permalink
change another null to NULLPTR and nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleFU committed Mar 22, 2024
1 parent 70ab283 commit 6dab594
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cpp/src/parquet/encryption/key_toolkit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace parquet::encryption {

std::shared_ptr<KmsClient> KeyToolkit::GetKmsClient(
const KmsConnectionConfig& kms_connection_config, double cache_entry_lifetime_ms) {
if (kms_client_factory_ == NULL) {
if (kms_client_factory_ == nullptr) {
throw ParquetException("No KmsClientFactory is registered.");
}
auto kms_client_per_kms_instance_cache =
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/parquet/encryption/kms_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void KmsConnectionConfig::SetDefaultIfEmpty() {
if (kms_instance_url.empty()) {
kms_instance_url = KmsClient::kKmsInstanceUrlDefault;
}
if (refreshable_key_access_token == NULL) {
if (refreshable_key_access_token == nullptr) {
refreshable_key_access_token = std::make_shared<KeyAccessToken>();
}
}
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/parquet/encryption/kms_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ struct PARQUET_EXPORT KmsConnectionConfig {
KmsConnectionConfig();

const std::string& key_access_token() const {
if (refreshable_key_access_token == NULL ||
if (refreshable_key_access_token == NULLPTR ||
refreshable_key_access_token->value().empty()) {
throw ParquetException("key access token is not set!");
}
Expand Down

0 comments on commit 6dab594

Please sign in to comment.