[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_9.0-48-g8ee296c

Rémi Cardona nobody at users.sourceforge.net
Wed Mar 9 09:03:44 CET 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grisbi".

The branch, master has been updated
       via  8ee296c1247bc51a17e455901388f02ebc5f795b (commit)
      from  7b13af53576981d0339c7405aaf986f9b5cfc5a1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8ee296c1247bc51a17e455901388f02ebc5f795b
Author: Rémi Cardona <remi at gentoo.org>
Date:   Wed Mar 9 08:51:30 2011 +0100

    Move 'bet_taux_step' global variable inside the only function that uses it

-----------------------------------------------------------------------

Changes:
diff --git a/src/bet_data_finance.c b/src/bet_data_finance.c
index 6e7b44e..aa553dc 100644
--- a/src/bet_data_finance.c
+++ b/src/bet_data_finance.c
@@ -45,8 +45,6 @@
 extern gint no_devise_totaux_categ;
 /*END_EXTERN*/
 
-gdouble bet_taux_step[] = { 0, 0.1, 0.01, 0.001, 0.0001 };
-
 /**
  * retourne l'échéance hors frais
  *
@@ -308,13 +306,15 @@ void bet_data_finance_data_simulator_init ( void )
 
 
 /**
- *
+ * FIXME: nbre_digits is never used... this needs to be checked...
  *
  *
  *
  * */
 gdouble bet_data_finance_get_bet_taux_step ( gint nbre_digits )
 {
+    const gdouble bet_taux_step[] = { 0, 0.1, 0.01, 0.001, 0.0001 };
+
     return bet_taux_step[BET_TAUX_DIGITS];
 }
 


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list