aboutsummaryrefslogtreecommitdiff
path: root/src/networkfilemanager.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-02-02 22:34:56 +0100
committerEven Rouault <even.rouault@spatialys.com>2020-02-04 21:43:42 +0100
commit87318283eedef680356ef272a6af39ac3140d333 (patch)
treede858fc84d84e0ac6eec8d121ee5f2b76b55e0ea /src/networkfilemanager.cpp
parent42035701c02d15d586e762afa1db5c8b5c9eac39 (diff)
downloadPROJ-87318283eedef680356ef272a6af39ac3140d333.tar.gz
PROJ-87318283eedef680356ef272a6af39ac3140d333.zip
Add projsync utility
Fixes #1750
Diffstat (limited to 'src/networkfilemanager.cpp')
-rw-r--r--src/networkfilemanager.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/networkfilemanager.cpp b/src/networkfilemanager.cpp
index c4cb41d9..d252fd84 100644
--- a/src/networkfilemanager.cpp
+++ b/src/networkfilemanager.cpp
@@ -193,7 +193,7 @@ class DiskChunkCache {
std::unique_ptr<SQLite3VFS> vfs_{};
explicit DiskChunkCache(PJ_CONTEXT *ctx, const std::string &path);
-
+
bool initialize();
void commitAndClose();
@@ -552,7 +552,8 @@ bool DiskChunkCache::checkConsistency() {
void DiskChunkCache::commitAndClose() {
if (hDB_) {
- if( sqlite3_exec(hDB_, "COMMIT", nullptr, nullptr, nullptr) != SQLITE_OK ) {
+ if (sqlite3_exec(hDB_, "COMMIT", nullptr, nullptr, nullptr) !=
+ SQLITE_OK) {
pj_log(ctx_, PJ_LOG_ERROR, "%s", sqlite3_errmsg(hDB_));
}
sqlite3_close(hDB_);
@@ -562,9 +563,7 @@ void DiskChunkCache::commitAndClose() {
// ---------------------------------------------------------------------------
-DiskChunkCache::~DiskChunkCache() {
- commitAndClose();
-}
+DiskChunkCache::~DiskChunkCache() { commitAndClose(); }
// ---------------------------------------------------------------------------
@@ -1336,7 +1335,8 @@ std::unique_ptr<File> NetworkFile::open(PJ_CONTEXT *ctx, const char *filename) {
// ---------------------------------------------------------------------------
-std::unique_ptr<File> pj_network_file_open(PJ_CONTEXT* ctx, const char* filename) {
+std::unique_ptr<File> pj_network_file_open(PJ_CONTEXT *ctx,
+ const char *filename) {
return NetworkFile::open(ctx, filename);
}