Skip to content

Commit 7b505ed

Browse files
authored
Merge pull request OSGeo#13719 from rouault/doc_GDALGetMetadata
Doc: migration guide: clarify impact of change of GDALGetMetadata return type for C++ users
2 parents cdc9ac9 + 64feb5c commit 7b505ed

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

doc/source/user/migration_guide.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@ From GDAL 3.12 to GDAL 3.13
1414

1515
- Changes impacting C++ users:
1616

17-
* :cpp:func:`GDALMajorObject::SetMetadata` now takes a ``CSLConstList`` argument.
18-
* :cpp:func:`GDALMajorObject::GetMetadata` now returns a ``CSLConstList`` argument.
17+
* :cpp:func:`GDALMajorObject::SetMetadata` now takes a ``CSLConstList`` argument
18+
(this does not require code changes but is an opportunity for users to have better const safety)
19+
* :cpp:func:`GDALMajorObject::GetMetadata` and :cpp:func:`GDALGetMetadata`
20+
now return a ``CSLConstList`` argument.
21+
This will require users that stored the return value of those functions in
22+
``char **`` to use ``CSLConstList`` instead. Such change is compatible with
23+
earlier GDAL versions.
1924

2025
From GDAL 3.11 to GDAL 3.12
2126
---------------------------

0 commit comments

Comments
 (0)