mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
A few minor c++ tweaks regarding variables
This commit is contained in:
parent
d65f991e4b
commit
0421ff834a
@ -65,9 +65,9 @@ static QofLogModule log_module = GNC_MOD_GUI;
|
||||
|
||||
/* GNC_VCS is defined whenever we're building from an svn/svk/git/bzr tree */
|
||||
#ifdef GNC_VCS
|
||||
static int is_development_version = TRUE;
|
||||
constexpr int is_development_version = TRUE;
|
||||
#else
|
||||
static int is_development_version = FALSE;
|
||||
constexpr int is_development_version = FALSE;
|
||||
#define GNC_VCS ""
|
||||
#endif
|
||||
|
||||
|
@ -91,7 +91,6 @@ load_gnucash_plugins()
|
||||
static void
|
||||
load_gnucash_modules()
|
||||
{
|
||||
int i, len;
|
||||
struct
|
||||
{
|
||||
const gchar * name;
|
||||
@ -105,8 +104,8 @@ load_gnucash_modules()
|
||||
};
|
||||
|
||||
/* module initializations go here */
|
||||
len = sizeof(modules) / sizeof(*modules);
|
||||
for (i = 0; i < len; i++)
|
||||
int len = sizeof(modules) / sizeof(*modules);
|
||||
for (int i = 0; i < len; i++)
|
||||
{
|
||||
DEBUG("Loading module %s started", modules[i].name);
|
||||
gnc_update_splash_screen(modules[i].name, GNC_SPLASH_PERCENTAGE_UNKNOWN);
|
||||
@ -139,13 +138,10 @@ static void
|
||||
scm_run_gnucash (void *data, [[maybe_unused]] int argc, [[maybe_unused]] char **argv)
|
||||
{
|
||||
auto user_file_spec = static_cast<t_file_spec*>(data);
|
||||
SCM main_mod;
|
||||
char* fn = NULL;
|
||||
|
||||
|
||||
scm_c_eval_string("(debug-set! stack 200000)");
|
||||
|
||||
main_mod = scm_c_resolve_module("gnucash utilities");
|
||||
auto main_mod = scm_c_resolve_module("gnucash utilities");
|
||||
scm_set_current_module(main_mod);
|
||||
scm_c_use_module("gnucash app-utils");
|
||||
|
||||
@ -196,6 +192,7 @@ scm_run_gnucash (void *data, [[maybe_unused]] int argc, [[maybe_unused]] char **
|
||||
|
||||
gnc_hook_run(HOOK_STARTUP, NULL);
|
||||
|
||||
char* fn = nullptr;
|
||||
if (!user_file_spec->nofile && (fn = get_file_to_load (user_file_spec->file_to_load)) && *fn )
|
||||
{
|
||||
auto msg = _("Loading data...");
|
||||
|
Loading…
Reference in New Issue
Block a user