Skip to content

Commit

Permalink
Use GetGDALDriverManager to register driver (#25)
Browse files Browse the repository at this point in the history
'GetRegistrar' and 'RegisterDriver' are deprecated.
  • Loading branch information
nilason committed Jul 26, 2023
1 parent 1e2d911 commit 1f6a624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ogrgrassdriver.cpp
Expand Up @@ -96,5 +96,5 @@ void RegisterOGRGRASS()
poDriver->SetMetadataItem( GDAL_DMD_LONGNAME, "GRASS Vectors (5.7+)" );
poDriver->SetMetadataItem( GDAL_DMD_HELPTOPIC, "drivers/vector/grass.html" );

OGRSFDriverRegistrar::GetRegistrar()->RegisterDriver( poDriver );
GetGDALDriverManager()->RegisterDriver(poDriver);
}

0 comments on commit 1f6a624

Please sign in to comment.