From df897ef5b01a045769ffb71ebc6dead179db857c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 2 Aug 2020 14:15:38 +0200 Subject: Use nullptr for empty smart pointers --- src/client/ClientStore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client/ClientStore.cpp') 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(); + return nullptr; } auto object = std::dynamic_pointer_cast(top->second); @@ -158,7 +158,7 @@ ClientStore::_object(const Raul::Path& path) { const iterator i = find(path); if (i == end()) { - return SPtr(); + return nullptr; } else { auto model = std::dynamic_pointer_cast(i->second); assert(model); -- cgit v1.2.1