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/ClientStore.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/ClientStore.cpp')
-rw-r--r-- | src/client/ClientStore.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/ClientStore.cpp b/src/client/ClientStore.cpp index a02a3227..a9d8f44b 100644 --- a/src/client/ClientStore.cpp +++ b/src/client/ClientStore.cpp @@ -96,7 +96,7 @@ ClientStore::remove_object(const Raul::Path& path) // Find the object, the "top" of the tree to remove const iterator top = find(path); if (top == end()) { - return SPtr<ObjectModel>(); + return nullptr; } auto object = std::dynamic_pointer_cast<ObjectModel>(top->second); @@ -158,7 +158,7 @@ ClientStore::_object(const Raul::Path& path) { const iterator i = find(path); if (i == end()) { - return SPtr<ObjectModel>(); + return nullptr; } else { auto model = std::dynamic_pointer_cast<ObjectModel>(i->second); assert(model); |