aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.h b/lib/util.h
index f5650ee2..66db0ece 100644
--- a/lib/util.h
+++ b/lib/util.h
@@ -283,7 +283,7 @@ inline ImplPtr<ImplType> makeImpl(ArgTs&&... args)
template <typename ImplType>
const inline ImplPtr<ImplType> ZeroImpl()
{
- return { nullptr, [](ImplType*) {} };
+ return { nullptr, [](ImplType*) { /* nullptr doesn't need deletion */ } };
}
/** Convert what looks like a URL or a Matrix ID to an HTML hyperlink */