aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_c_api.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2018-12-14 12:51:23 +0100
committerEven Rouault <even.rouault@spatialys.com>2018-12-14 12:51:23 +0100
commit4638b45730ab29b2891e57474fa9ee130d6b38a4 (patch)
tree616fc9dc30aad48eae25febe3ef552770677ef7d /test/unit/test_c_api.cpp
parentb2aa77f811dc0dd257afe3fccac49c62fcf039b2 (diff)
downloadPROJ-4638b45730ab29b2891e57474fa9ee130d6b38a4.tar.gz
PROJ-4638b45730ab29b2891e57474fa9ee130d6b38a4.zip
Rename proj_destroy_int_list to proj_int_list_destroy and proj_destroy_string_list to proj_string_list_destroy for consistency (refs #1198)
Diffstat (limited to 'test/unit/test_c_api.cpp')
-rw-r--r--test/unit/test_c_api.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/test_c_api.cpp b/test/unit/test_c_api.cpp
index 36b08529..7384262b 100644
--- a/test/unit/test_c_api.cpp
+++ b/test/unit/test_c_api.cpp
@@ -927,7 +927,7 @@ TEST_F(CApi, proj_obj_get_source_target_crs_invalid_object) {
struct ListFreer {
PROJ_STRING_LIST list;
ListFreer(PROJ_STRING_LIST ptrIn) : list(ptrIn) {}
- ~ListFreer() { proj_destroy_string_list(list); }
+ ~ListFreer() { proj_string_list_destroy(list); }
ListFreer(const ListFreer &) = delete;
ListFreer &operator=(const ListFreer &) = delete;
};
@@ -1479,7 +1479,7 @@ TEST_F(CApi, proj_obj_identify) {
ObjListKeeper keeper_res(res);
EXPECT_EQ(proj_obj_list_get_count(res), 1);
EXPECT_EQ(confidence[0], 100);
- proj_destroy_int_list(confidence);
+ proj_int_list_destroy(confidence);
}
{
auto objEllps = proj_obj_create_from_wkt(