I originally sent these a few years ago and the reply was that
const-correctness wasn't something cared about, but seeing other const
changes in dwm, and purely const-correctness improvements in
quark/st/libgrapheme, I figured maybe it's worth reevaluating and seeing
if they are of interest now.
These changes primarily avoid casting away const unnecessarily. They
also make sure that we don't accidentally introduce non-const behaviour
in future, and potentially UB.
From my side I've been using these patches for years, and they work
well.
Chris Down (2):
drw: Maintain const-correctness for fontconfig/Xft types
callables: Retain const-correctness for arg->v
drw.c | 4 ++--
dwm.c | 7 ++++---
2 files changed, 6 insertions(+), 5 deletions(-)
--
2.37.2
Received on Mon Aug 22 2022 - 00:08:43 CEST