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 <ryanfriedman5410+github@gmail.com>
  • Loading branch information
Ryanf55 committed Jul 31, 2024
1 parent 7038bf5 commit 5e03fc3
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 5e03fc3

Please sign in to comment.