mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Remove useless parameters from MainClock constructor
Remove (always false) duration & is_transient and (always true) editable, with_info & follows_playhead parameters from MainClock constructor, and just pass the requisite true & false values along to the AudioClock constructor instead.
This commit is contained in:
parent
714677f036
commit
760e00b028
3 changed files with 5 additions and 11 deletions
|
|
@ -161,8 +161,8 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[], const char* localedir)
|
|||
, ui_config (new UIConfiguration)
|
||||
, gui_object_state (new GUIObjectState)
|
||||
|
||||
, primary_clock (new MainClock (X_("primary"), false, X_("transport"), true, true, true, false, true))
|
||||
, secondary_clock (new MainClock (X_("secondary"), false, X_("secondary"), true, true, false, false, true))
|
||||
, primary_clock (new MainClock (X_("primary"), X_("transport"), true ))
|
||||
, secondary_clock (new MainClock (X_("secondary"), X_("secondary"), false))
|
||||
|
||||
/* big clock */
|
||||
|
||||
|
|
|
|||
|
|
@ -29,15 +29,10 @@ using namespace Gtk;
|
|||
|
||||
MainClock::MainClock (
|
||||
const std::string& clock_name,
|
||||
bool is_transient,
|
||||
const std::string& widget_name,
|
||||
bool editable,
|
||||
bool follows_playhead,
|
||||
bool primary,
|
||||
bool duration,
|
||||
bool with_info
|
||||
bool primary
|
||||
)
|
||||
: AudioClock (clock_name, is_transient, widget_name, editable, follows_playhead, duration, with_info)
|
||||
: AudioClock (clock_name, false, widget_name, true, true, false, true)
|
||||
, _primary (primary)
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -25,8 +25,7 @@
|
|||
class MainClock : public AudioClock
|
||||
{
|
||||
public:
|
||||
MainClock (const std::string& clock_name, bool is_transient, const std::string& widget_name,
|
||||
bool editable, bool follows_playhead, bool primary, bool duration = false, bool with_info = false);
|
||||
MainClock (const std::string& clock_name, const std::string& widget_name, bool primary);
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue