MCPcopy Create free account
hub / github.com/OSGeo/PROJ / pj_xyzgridshift_destructor

Function pj_xyzgridshift_destructor

src/transformations/xyzgridshift.cpp:200–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200static PJ *pj_xyzgridshift_destructor(PJ *P, int errlev) {
201 if (nullptr == P)
202 return nullptr;
203
204 auto Q = static_cast<struct xyzgridshiftData *>(P->opaque);
205 if (Q) {
206 if (Q->cart)
207 Q->cart->destructor(Q->cart, errlev);
208 delete Q;
209 }
210 P->opaque = nullptr;
211
212 return pj_default_destructor(P, errlev);
213}
214
215static void pj_xyzgridshift_reassign_context(PJ *P, PJ_CONTEXT *ctx) {
216 auto Q = (struct xyzgridshiftData *)P->opaque;

Callers 1

xyzgridshift.cppFile · 0.85

Calls 1

pj_default_destructorFunction · 0.85

Tested by

no test coverage detected