OGRDataSource *OGRBNADriver::CreateDataSource( const char * pszName, char **papszOptions ) { OGRBNADataSource *poDS = new OGRBNADataSource(); if( !poDS->Create( pszName, papszOptions ) ) { delete poDS; poDS = NULL; } return poDS; }
static GDALDataset *OGRBNADriverCreate( const char * pszName, int /* nBands */, int /* nXSize */, int /* nYSize */, GDALDataType /* eDT */, char **papszOptions ) { OGRBNADataSource *poDS = new OGRBNADataSource(); if( !poDS->Create( pszName, papszOptions ) ) { delete poDS; poDS = nullptr; } return poDS; }