From 78bda48f1f09f5a1e03ddd612751ce6abf5b0dd9 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 6 Aug 2018 13:01:06 +0200 Subject: Avoid creating an instance just to check for instance --- common/storage/entitystore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/storage/entitystore.cpp b/common/storage/entitystore.cpp index 1ba7c6c..bb0967a 100644 --- a/common/storage/entitystore.cpp +++ b/common/storage/entitystore.cpp @@ -107,7 +107,7 @@ public: bool exists() { - return DataStore(Sink::storageLocation(), resourceContext.instanceId(), DataStore::ReadOnly).exists(); + return Storage::DataStore::exists(Sink::storageLocation(), resourceContext.instanceId()); } DataStore::Transaction &getTransaction() -- cgit v1.2.3