diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-03-10 18:22:29 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2021-03-10 18:22:29 +0100 |
| commit | 3c27205bf04e119483f0334d06084b4c80795cee (patch) | |
| tree | d1dd030102ce3b1d8807393f414d87bdce9b9db3 /src | |
| parent | 47dd37ff798d454d8e1fd00cd93478642981e2b0 (diff) | |
| download | PROJ-3c27205bf04e119483f0334d06084b4c80795cee.tar.gz PROJ-3c27205bf04e119483f0334d06084b4c80795cee.zip | |
Code cleanup: remove conditional testing of SQLITE_OPEN_URI. It is present in sqlite >= 3.11
Diffstat (limited to 'src')
| -rw-r--r-- | src/iso19111/factory.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/iso19111/factory.cpp b/src/iso19111/factory.cpp index 1dac2535..fbe88dda 100644 --- a/src/iso19111/factory.cpp +++ b/src/iso19111/factory.cpp @@ -685,13 +685,9 @@ void DatabaseContext::Private::attachExtraDatabases( closeDB(); - sqlite3_open_v2(":memory:", &sqlite_handle_, - SQLITE_OPEN_READWRITE | SQLITE_OPEN_NOMUTEX -#ifdef SQLITE_OPEN_URI - | SQLITE_OPEN_URI -#endif - , - nullptr); + sqlite3_open_v2( + ":memory:", &sqlite_handle_, + SQLITE_OPEN_READWRITE | SQLITE_OPEN_NOMUTEX | SQLITE_OPEN_URI, nullptr); if (!sqlite_handle_) { throw FactoryException("cannot create in memory database"); } |
