diff --git a/plugins/input/sqlite/sqlite_datasource.cpp b/plugins/input/sqlite/sqlite_datasource.cpp index 6a31d4194..fa021ebf1 100644 --- a/plugins/input/sqlite/sqlite_datasource.cpp +++ b/plugins/input/sqlite/sqlite_datasource.cpp @@ -458,9 +458,9 @@ void sqlite_datasource::parse_attachdb(std::string const& attachdb) const if (! child_path.has_root_directory() && ! child_path.has_root_name()) { #ifdef _WINDOWS - boost::filesystem::path absolute_path(mapnik::utf8_to_utf16(dataset_name_)); + boost::filesystem::path absolute_path(mapnik::utf8_to_utf16(dataset_name_)); #else - boost::filesystem::path absolute_path(dataset_name_); + boost::filesystem::path absolute_path(dataset_name_); #endif // support symlinks diff --git a/plugins/input/sqlite/sqlite_utils.hpp b/plugins/input/sqlite/sqlite_utils.hpp index 32f41d5a8..5dfae3a4f 100644 --- a/plugins/input/sqlite/sqlite_utils.hpp +++ b/plugins/input/sqlite/sqlite_utils.hpp @@ -338,7 +338,7 @@ public: #else boost::filesystem::remove(index_db); #endif - } + } catch (...) {}; } throw mapnik::datasource_exception(ex.what()); @@ -427,7 +427,7 @@ public: #endif #ifdef _WINDOWS - bool existed = boost::filesystem::exists(mapnik::utf8_to_utf16(index_db)); + bool existed = boost::filesystem::exists(mapnik::utf8_to_utf16(index_db)); #else bool existed = boost::filesystem::exists(index_db);; #endif