diff options
| author | Alan D. Snow <alansnow21@gmail.com> | 2020-04-20 03:03:41 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-20 10:03:41 +0200 |
| commit | 5e3aba396b114fa4bb3cd787acfc000f6792c078 (patch) | |
| tree | 8bb11317ded5f9b9ed62ccf0cdfc31f711213ae7 /src/apps/projsync.cpp | |
| parent | b16b966b7484efd74a7364bd455ed3015d1009d6 (diff) | |
| download | PROJ-5e3aba396b114fa4bb3cd787acfc000f6792c078.tar.gz PROJ-5e3aba396b114fa4bb3cd787acfc000f6792c078.zip | |
Moved proj_context_get_url_endpoint & proj_context_get_user_writable_directory to proj.h (#2162)
Fixes #2028
Diffstat (limited to 'src/apps/projsync.cpp')
| -rw-r--r-- | src/apps/projsync.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apps/projsync.cpp b/src/apps/projsync.cpp index 61681260..f78e3a17 100644 --- a/src/apps/projsync.cpp +++ b/src/apps/projsync.cpp @@ -111,7 +111,7 @@ int main(int argc, char *argv[]) { auto ctx = pj_get_default_ctx(); std::string targetDir; - std::string endpoint(pj_context_get_url_endpoint(ctx)); + std::string endpoint(proj_context_get_url_endpoint(ctx)); const std::string geojsonFile("files.geojson"); std::string queriedSourceId; std::string queriedAreaOfUse; @@ -224,7 +224,7 @@ int main(int argc, char *argv[]) { } if (targetDir.empty()) { - targetDir = pj_context_get_user_writable_directory(ctx, true); + targetDir = proj_context_get_user_writable_directory(ctx, true); } else { if (targetDir.back() == '/') { targetDir.resize(targetDir.size() - 1); |
