From 9ad7a74a7c09d9dc8dbb51543b3aa8467037ed45 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Mon, 23 Mar 2026 09:08:55 +0100 Subject: [PATCH] configmgr/dconf: Drop cast from gdouble to double They're equivalent. (gdouble is a typedef for double.) Fixes this clang plugin error seen on Debian testing: .../configmgr/source/dconf.cxx:305:16: error: redundant functional cast from 'gdouble' (aka 'double') to 'double' [loplugin:redundantfcast] 305 | *value <<= double(g_variant_get_double(variant.get())); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. Change-Id: I5f64c27288bcf0b1aeb50ffb446ceb3f579f9651 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202415 Tested-by: Jenkins Reviewed-by: Michael Weghorn --- configmgr/source/dconf.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configmgr/source/dconf.cxx b/configmgr/source/dconf.cxx index c12f4a2814fd..61614aac045f 100644 --- a/configmgr/source/dconf.cxx +++ b/configmgr/source/dconf.cxx @@ -302,7 +302,7 @@ bool getDouble( "bad key " << key << " does not match double property"); return false; } - *value <<= double(g_variant_get_double(variant.get())); + *value <<= g_variant_get_double(variant.get()); return true; }