Skip to content

Commit

Permalink
Replace reinterpret_cast with ToHandle
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 committed Jul 31, 2024
1 parent 0397e4b commit b722c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geospatial/src/Dem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Dem::~Dem()
{
this->dataPtr->demData.clear();
if (this->dataPtr->dataSet)
GDALClose(reinterpret_cast<GDALDataset *>(this->dataPtr->dataSet));
GDALClose(GDALDataset::ToHandle(this->dataPtr->dataSet));
}

//////////////////////////////////////////////////
Expand Down

0 comments on commit b722c57

Please sign in to comment.