diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-10-28 10:41:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-28 10:41:39 +0100 |
| commit | d9b9afe2b9921b0b3624095b60cca7d630cae67a (patch) | |
| tree | 7865bf5e9b3d7b293f207c10a24fe965a114cfce /src/iso19111/factory.cpp | |
| parent | e2d5b13f3442a8e88093a9d68e1be550194a4d77 (diff) | |
| parent | 7026fa2241d4e42ac35688487b7c7dd4d7f8bad1 (diff) | |
| download | PROJ-d9b9afe2b9921b0b3624095b60cca7d630cae67a.tar.gz PROJ-d9b9afe2b9921b0b3624095b60cca7d630cae67a.zip | |
Merge pull request #1697 from rouault/cppcheck_fixes
Fixes/workaround to be able to use cppcheck from Ubuntu 16.04 (fixes #1648)
Diffstat (limited to 'src/iso19111/factory.cpp')
| -rw-r--r-- | src/iso19111/factory.cpp | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/iso19111/factory.cpp b/src/iso19111/factory.cpp index 6fef6366..e0a1b084 100644 --- a/src/iso19111/factory.cpp +++ b/src/iso19111/factory.cpp @@ -4379,19 +4379,17 @@ AuthorityFactory::createObjectsFromName( const auto &listOfRow = pair.second; for (const auto &row : listOfRow) { const auto &name = row[3]; - if (approximateMatch) { - bool match = - ci_find(name, searchedNameWithoutDeprecated) != - std::string::npos; - if (!match) { - const auto &canonicalizedName(pair.first); - match = ci_find(canonicalizedName, - canonicalizedSearchedName) != - std::string::npos; - } - if (!match) { - continue; - } + bool match = + ci_find(name, searchedNameWithoutDeprecated) != + std::string::npos; + if (!match) { + const auto &canonicalizedName(pair.first); + match = ci_find(canonicalizedName, + canonicalizedSearchedName) != + std::string::npos; + } + if (!match) { + continue; } const auto &auth_name = row[1]; |
