Merge Richard Cohen's 'fix-constructor-misuse' into master.

This commit is contained in:
John Ralls 2023-03-11 14:23:37 -08:00
commit 0cfe771fb7
2 changed files with 1 additions and 10 deletions

View File

@ -167,7 +167,7 @@ gnc_log_init (const std::vector <std::string> log_flags,
}
}
Gnucash::CoreApp::CoreApp ()
Gnucash::CoreApp::CoreApp (const char* app_name) : m_app_name {app_name}
{
#ifdef ENABLE_BINRELOC
{
@ -210,14 +210,6 @@ Gnucash::CoreApp::CoreApp ()
std::cerr.imbue (gnc_get_boost_locale());
std::cout.imbue (gnc_get_boost_locale());
g_free(localedir);
}
Gnucash::CoreApp::CoreApp (const char* app_name)
{
CoreApp();
m_app_name = std::string(app_name);
// Now that gettext is properly initialized, set our help tagline.
m_tagline = _("- GnuCash, accounting for personal and small business finance");

View File

@ -39,7 +39,6 @@ namespace bpo = boost::program_options;
class CoreApp
{
public:
CoreApp ();
CoreApp (const char* app_name);
void parse_command_line (int argc, char **argv);