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 <m.weghorn@posteo.de>
This commit is contained in:
Michael Weghorn
2026-03-23 15:20:45 +01:00
parent a3eb702383
commit 9ad7a74a7c
+1 -1
View File
@@ -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;
}