From 3c27205bf04e119483f0334d06084b4c80795cee Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 10 Mar 2021 18:22:29 +0100 Subject: Code cleanup: remove conditional testing of SQLITE_OPEN_URI. It is present in sqlite >= 3.11 --- src/iso19111/factory.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src') 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"); } -- cgit v1.2.3