summaryrefslogtreecommitdiffstats
path: root/src/server/Worker.cpp
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 /src/server/Worker.cpp
parent62f5c3124b991abe9b9423a4908ca076079d5327 (diff)
downloadingen-df897ef5b01a045769ffb71ebc6dead179db857c.tar.gz
ingen-df897ef5b01a045769ffb71ebc6dead179db857c.tar.bz2
ingen-df897ef5b01a045769ffb71ebc6dead179db857c.zip
Use nullptr for empty smart pointers
Diffstat (limited to 'src/server/Worker.cpp')
-rw-r--r--src/server/Worker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/Worker.cpp b/src/server/Worker.cpp
index 69f9eec6..1180fa47 100644
--- a/src/server/Worker.cpp
+++ b/src/server/Worker.cpp
@@ -96,7 +96,7 @@ Worker::Schedule::feature(World&, Node* n)
{
auto* block = dynamic_cast<LV2Block*>(n);
if (!block) {
- return SPtr<LV2_Feature>();
+ return nullptr;
}
auto* data = static_cast<LV2_Worker_Schedule*>(malloc(sizeof(LV2_Worker_Schedule)));