summaryrefslogtreecommitdiffstats
path: root/include/ingen/DataAccess.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-02 14:15:38 +0200
committerDavid Robillard <d@drobilla.net>2020-08-02 14:21:39 +0200
commitdf897ef5b01a045769ffb71ebc6dead179db857c (patch)
tree3bdb14e7315477d6e322e11bb5e2300f0de99b90 /include/ingen/DataAccess.hpp
parent62f5c3124b991abe9b9423a4908ca076079d5327 (diff)
downloadingen-df897ef5b01a045769ffb71ebc6dead179db857c.tar.gz
ingen-df897ef5b01a045769ffb71ebc6dead179db857c.tar.bz2
ingen-df897ef5b01a045769ffb71ebc6dead179db857c.zip
Use nullptr for empty smart pointers
Diffstat (limited to 'include/ingen/DataAccess.hpp')
-rw-r--r--include/ingen/DataAccess.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ingen/DataAccess.hpp b/include/ingen/DataAccess.hpp
index b06c8dec..49bb6102 100644
--- a/include/ingen/DataAccess.hpp
+++ b/include/ingen/DataAccess.hpp
@@ -44,12 +44,12 @@ struct DataAccess : public ingen::LV2Features::Feature
SPtr<LV2_Feature> feature(World& world, Node* node) override {
Node* store_node = world.store()->get(node->path());
if (!store_node) {
- return SPtr<LV2_Feature>();
+ return nullptr;
}
LilvInstance* inst = store_node->instance();
if (!inst) {
- return SPtr<LV2_Feature>();
+ return nullptr;
}
const LV2_Descriptor* desc = lilv_instance_get_descriptor(inst);