aboutsummaryrefslogtreecommitdiff
path: root/src/iso19111/factory.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-08-15 18:06:45 +0200
committerEven Rouault <even.rouault@spatialys.com>2021-08-15 18:06:45 +0200
commit88322b46e756a950ff2d312169a68c7f56ff105e (patch)
tree55d9c8a039fe1f5cdf837ab4341a560b7b2cc372 /src/iso19111/factory.cpp
parent4468e2b47376c0cc4d9fac9cb57677ffdf2203ea (diff)
downloadPROJ-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.cpp5
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);