mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
A wee bit of C++ style.
This commit is contained in:
parent
537fd995a3
commit
f8045b2735
@ -363,11 +363,9 @@ set_string_val (gpointer pObject, gpointer pValue)
|
||||
static gpointer
|
||||
get_double_val (gpointer pObject)
|
||||
{
|
||||
slot_info_t* pInfo = (slot_info_t*)pObject;
|
||||
static double d_val;
|
||||
|
||||
static double d_val; /* static so that we can return it. */
|
||||
g_return_val_if_fail (pObject != NULL, NULL);
|
||||
|
||||
auto pInfo = static_cast<slot_info_t*>(pObject);
|
||||
if (pInfo->pKvpValue->get_type () == KvpValue::Type::DOUBLE)
|
||||
{
|
||||
d_val = pInfo->pKvpValue->get<double> ();
|
||||
|
Loading…
Reference in New Issue
Block a user