Skip to content

Commit fd77963

Browse files
committed
GDALDataset::GetGCPProjection(): make it const
1 parent 7c24224 commit fd77963

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gcore/gdal_priv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ class CPL_DLL GDALDataset : public GDALMajorObject
10121012
const OGRSpatialReference *poGCP_SRS);
10131013

10141014
// Compatibility layer
1015-
const char *GetGCPProjection();
1015+
const char *GetGCPProjection() const;
10161016
CPLErr SetGCPs(int nGCPCount, const GDAL_GCP *pasGCPList,
10171017
const char *pszGCPProjection);
10181018

gcore/gdaldataset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2017,7 +2017,7 @@ int CPL_STDCALL GDALGetGCPCount(GDALDatasetH hDS)
20172017
* It should not be altered, freed or expected to last for long.
20182018
*/
20192019

2020-
const char *GDALDataset::GetGCPProjection()
2020+
const char *GDALDataset::GetGCPProjection() const
20212021
{
20222022
const auto poSRS = GetGCPSpatialRef();
20232023
if (!poSRS || !m_poPrivate)

0 commit comments

Comments
 (0)