From 32dd9704ce92221d6c7764491f4c29bed0a0890c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 2 Sep 2024 21:16:02 +0200 Subject: [PATCH] util/DeleteDisposer: add `const` and `noexcept` --- src/util/DeleteDisposer.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/DeleteDisposer.hxx b/src/util/DeleteDisposer.hxx index 2201acfae..7be76d085 100644 --- a/src/util/DeleteDisposer.hxx +++ b/src/util/DeleteDisposer.hxx @@ -10,7 +10,7 @@ class DeleteDisposer { public: template - void operator()(T *t) { + void operator()(T *t) const noexcept { delete t; } };