diff options
author | David Robillard <d@drobilla.net> | 2020-08-02 14:15:38 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-02 14:21:39 +0200 |
commit | df897ef5b01a045769ffb71ebc6dead179db857c (patch) | |
tree | 3bdb14e7315477d6e322e11bb5e2300f0de99b90 /src/client/PluginUI.cpp | |
parent | 62f5c3124b991abe9b9423a4908ca076079d5327 (diff) | |
download | ingen-df897ef5b01a045769ffb71ebc6dead179db857c.tar.gz ingen-df897ef5b01a045769ffb71ebc6dead179db857c.tar.bz2 ingen-df897ef5b01a045769ffb71ebc6dead179db857c.zip |
Use nullptr for empty smart pointers
Diffstat (limited to 'src/client/PluginUI.cpp')
-rw-r--r-- | src/client/PluginUI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/PluginUI.cpp b/src/client/PluginUI.cpp index 1074be3e..b0f92e41 100644 --- a/src/client/PluginUI.cpp +++ b/src/client/PluginUI.cpp @@ -40,7 +40,7 @@ get_port(PluginUI* ui, uint32_t port_index) ui->world().log().error("%1% UI tried to access invalid port %2%\n", ui->block()->plugin()->uri().c_str(), port_index); - return SPtr<const PortModel>(); + return nullptr; } return ui->block()->ports()[port_index]; } @@ -211,7 +211,7 @@ PluginUI::create(ingen::World& world, if (!ui) { lilv_node_free(gtk_ui); - return SPtr<PluginUI>(); + return nullptr; } // Create the PluginUI, but don't instantiate yet |