diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2013-08-09 20:41:58 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2013-08-13 20:15:47 +1000 |
commit | d51eba1162c072760a38d00bb39ee21749d87abb (patch) | |
tree | 9bdfdeedacb3fcdf818f0f19c859b9530c85dd75 /libs/ardour/globals.cc | |
parent | 4c4376d5dd9ad4569ff9421ec8c8963b2a586fbd (diff) |
Change ARDOUR::init return type to bool type for success/failure
Diffstat (limited to 'libs/ardour/globals.cc')
-rw-r--r-- | libs/ardour/globals.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/ardour/globals.cc b/libs/ardour/globals.cc index 4c91956ffd..5e3553ad8a 100644 --- a/libs/ardour/globals.cc +++ b/libs/ardour/globals.cc @@ -215,7 +215,7 @@ lotsa_files_please () } } -int +bool ARDOUR::init (bool use_windows_vst, bool try_optimization, const char* localedir) { if (!Glib::thread_supported()) { @@ -269,7 +269,7 @@ ARDOUR::init (bool use_windows_vst, bool try_optimization, const char* localedir Config = new RCConfiguration; if (Config->load_state ()) { - return -1; + return false; } Config->set_use_windows_vst (use_windows_vst); @@ -282,13 +282,13 @@ ARDOUR::init (bool use_windows_vst, bool try_optimization, const char* localedir #ifdef WINDOWS_VST_SUPPORT if (Config->get_use_windows_vst() && fst_init (0)) { - return -1; + return false; } #endif #ifdef LXVST_SUPPORT if (Config->get_use_lxvst() && vstfx_init (0)) { - return -1; + return false; } #endif @@ -331,7 +331,7 @@ ARDOUR::init (bool use_windows_vst, bool try_optimization, const char* localedir EventTypeMap::instance().new_parameter(EnvelopeAutomation); EventTypeMap::instance().new_parameter(MidiCCAutomation); - return 0; + return true; } void |