diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2020-01-26 21:36:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-26 21:36:19 +0100 |
| commit | 66013a0202ae77ea6c5ae0e0f0c79f5a0edc5622 (patch) | |
| tree | 00bc3e8ca1db1d8d9013e627073b5c3c44f00983 /src/iso19111/io.cpp | |
| parent | 0f22959cb2f052fd55e2b8b83289d9eca7b1c71f (diff) | |
| parent | 9ae11763257da599388f522364c6be2d044d1d87 (diff) | |
| download | PROJ-66013a0202ae77ea6c5ae0e0f0c79f5a0edc5622.tar.gz PROJ-66013a0202ae77ea6c5ae0e0f0c79f5a0edc5622.zip | |
Merge pull request #1886 from rouault/cppcheck_1_90_happyness
Few improvements to make cppcheck 1.90 happier
Diffstat (limited to 'src/iso19111/io.cpp')
| -rw-r--r-- | src/iso19111/io.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/iso19111/io.cpp b/src/iso19111/io.cpp index 0fc11f6f..e4b159bd 100644 --- a/src/iso19111/io.cpp +++ b/src/iso19111/io.cpp @@ -3526,7 +3526,7 @@ ConversionNNPtr WKTParser::Private::buildProjectionStandard( EPSG_CODE_PARAMETER_LATITUDE_OF_NATURAL_ORIGIN); propertiesParameter.set(Identifier::CODESPACE_KEY, Identifier::EPSG); - } else if (paramMapping) { + } else if (mapping && paramMapping) { for (size_t idx = 0; mapping->params[idx] != nullptr; ++idx) { if (mapping->params[idx] == paramMapping) { foundParameters[idx] = true; @@ -4542,7 +4542,7 @@ class JSONParser { static Measure getMeasure(const json &j); IdentifierNNPtr buildId(const json &j, bool removeInverseOf); - ObjectDomainPtr buildObjectDomain(const json &j); + static ObjectDomainPtr buildObjectDomain(const json &j); PropertyMap buildProperties(const json &j, bool removeInverseOf = false); GeographicCRSNNPtr buildGeographicCRS(const json &j); |
