diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-08-15 18:06:45 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2021-08-15 18:06:45 +0200 |
| commit | 88322b46e756a950ff2d312169a68c7f56ff105e (patch) | |
| tree | 55d9c8a039fe1f5cdf837ab4341a560b7b2cc372 /src/iso19111/factory.cpp | |
| parent | 4468e2b47376c0cc4d9fac9cb57677ffdf2203ea (diff) | |
| download | PROJ-88322b46e756a950ff2d312169a68c7f56ff105e.tar.gz PROJ-88322b46e756a950ff2d312169a68c7f56ff105e.zip | |
factory.cpp: fix latest clang -Wstring-concatenation (false positive) warning
Diffstat (limited to 'src/iso19111/factory.cpp')
| -rw-r--r-- | src/iso19111/factory.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/iso19111/factory.cpp b/src/iso19111/factory.cpp index 42055f90..508c3513 100644 --- a/src/iso19111/factory.cpp +++ b/src/iso19111/factory.cpp @@ -1145,9 +1145,8 @@ std::vector<std::string> DatabaseContext::Private::getDatabaseStructure() { : "db_0."); const auto sqlBegin("SELECT sql||';' FROM " + dbNamePrefix + "sqlite_master WHERE type = "); - const char *const objectTypes[] = {"'table' AND " - "name NOT LIKE 'sqlite_stat%'", - "'view'", "'trigger'"}; + const char *tableType = "'table' AND name NOT LIKE 'sqlite_stat%'"; + const char *const objectTypes[] = {tableType, "'view'", "'trigger'"}; std::vector<std::string> res; for (const auto &objectType : objectTypes) { const auto sqlRes = run(sqlBegin + objectType); |
