Skip to content

Commit

Permalink
Remove unnecessary std::string conversion to c_str
Browse files Browse the repository at this point in the history
Co-authored-by: John Kerl <[email protected]>
  • Loading branch information
XanthosXanthopoulos and johnkerl authored Dec 12, 2024
1 parent 9b40729 commit 9262a04
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libtiledbsoma/src/utils/arrow_adapter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,7 @@ std::unique_ptr<ArrowSchema> ArrowAdapter::arrow_schema_from_tiledb_attribute(
arrow_schema->metadata = nullptr;
arrow_schema->flags = 0;
if (attribute.nullable() &&
strcmp(attribute.name().c_str(), SOMA_GEOMETRY_COLUMN_NAME.c_str()) !=
0) {
attribute.name() != SOMA_GEOMETRY_COLUMN_NAME) {
arrow_schema->flags |= ARROW_FLAG_NULLABLE;
} else {
arrow_schema->flags &= ~ARROW_FLAG_NULLABLE;
Expand Down

0 comments on commit 9262a04

Please sign in to comment.