diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-06 13:01:06 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-06 13:01:06 +0200 |
commit | 78bda48f1f09f5a1e03ddd612751ce6abf5b0dd9 (patch) | |
tree | 7fea56bd4adf3dc439608e0797f13f207e709457 /common | |
parent | 256b5beb89d2c67d74d80a6f1a0f0dad074911e3 (diff) | |
download | sink-78bda48f1f09f5a1e03ddd612751ce6abf5b0dd9.tar.gz sink-78bda48f1f09f5a1e03ddd612751ce6abf5b0dd9.zip |
Avoid creating an instance just to check for instance
Diffstat (limited to 'common')
-rw-r--r-- | common/storage/entitystore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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: | |||
107 | 107 | ||
108 | bool exists() | 108 | bool exists() |
109 | { | 109 | { |
110 | return DataStore(Sink::storageLocation(), resourceContext.instanceId(), DataStore::ReadOnly).exists(); | 110 | return Storage::DataStore::exists(Sink::storageLocation(), resourceContext.instanceId()); |
111 | } | 111 | } |
112 | 112 | ||
113 | DataStore::Transaction &getTransaction() | 113 | DataStore::Transaction &getTransaction() |