summaryrefslogtreecommitdiffstats
path: root/src/server/LV2ResizeFeature.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 /src/server/LV2ResizeFeature.hpp
parent62f5c3124b991abe9b9423a4908ca076079d5327 (diff)
downloadingen-df897ef5b01a045769ffb71ebc6dead179db857c.tar.gz
ingen-df897ef5b01a045769ffb71ebc6dead179db857c.tar.bz2
ingen-df897ef5b01a045769ffb71ebc6dead179db857c.zip
Use nullptr for empty smart pointers
Diffstat (limited to 'src/server/LV2ResizeFeature.hpp')
-rw-r--r--src/server/LV2ResizeFeature.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/LV2ResizeFeature.hpp b/src/server/LV2ResizeFeature.hpp
index 1bd93ee0..322aacb8 100644
--- a/src/server/LV2ResizeFeature.hpp
+++ b/src/server/LV2ResizeFeature.hpp
@@ -46,8 +46,9 @@ struct ResizeFeature : public ingen::LV2Features::Feature {
SPtr<LV2_Feature> feature(World& w, Node* n) {
BlockImpl* block = dynamic_cast<BlockImpl*>(n);
- if (!block)
- return SPtr<LV2_Feature>();
+ if (!block) {
+ return nullptr;
+ }
LV2_Resize_Port_Resize* data
= (LV2_Resize_Port_Resize*)malloc(sizeof(LV2_Resize_Port_Resize));
data->data = block;