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:
@@ -302,7 +302,7 @@ bool getDouble(
|
|||||||
"bad key " << key << " does not match double property");
|
"bad key " << key << " does not match double property");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
*value <<= double(g_variant_get_double(variant.get()));
|
*value <<= g_variant_get_double(variant.get());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user