From 9fc7bfd5ef1daf84307d553941855fb377fddc7c Mon Sep 17 00:00:00 2001 From: Alexey Rusakov Date: Wed, 5 Jan 2022 14:06:15 +0100 Subject: Add a comment, as Sonar advises --- lib/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 makeImpl(ArgTs&&... args) template const inline ImplPtr 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 */ -- cgit v1.2.3