mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 17:03:06 +01:00
Use ARDOUR::stringcr_t (read: const std::string &) instead of std::string to avoid unnecessary constructor calls.
I'll commit a bunch of those soon, if this 1st example is accepted. git-svn-id: svn://localhost/trunk/ardour2@193 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
5d1f3c2d30
commit
cf37405a71
2 changed files with 2 additions and 2 deletions
|
|
@ -62,7 +62,7 @@ const double TimeAxisViewItem::GRAB_HANDLE_LENGTH = 6 ;
|
|||
* @param start the start point of this item
|
||||
* @param duration the duration of this item
|
||||
*/
|
||||
TimeAxisViewItem::TimeAxisViewItem(std::string it_name, ArdourCanvas::Group& parent, TimeAxisView& tv, double spu, Gdk::Color& base_color,
|
||||
TimeAxisViewItem::TimeAxisViewItem(ARDOUR::stringcr_t it_name, ArdourCanvas::Group& parent, TimeAxisView& tv, double spu, Gdk::Color& base_color,
|
||||
jack_nframes_t start, jack_nframes_t duration,
|
||||
Visibility visibility)
|
||||
: trackview (tv)
|
||||
|
|
|
|||
|
|
@ -340,7 +340,7 @@ class TimeAxisViewItem : public sigc::trackable, public Selectable
|
|||
* @param start the start point of this item
|
||||
* @param duration the duration of this item
|
||||
*/
|
||||
TimeAxisViewItem(std::string it_name, ArdourCanvas::Group& parent, TimeAxisView& tv, double spu, Gdk::Color& base_color,
|
||||
TimeAxisViewItem(ARDOUR::stringcr_t it_name, ArdourCanvas::Group& parent, TimeAxisView& tv, double spu, Gdk::Color& base_color,
|
||||
jack_nframes_t start, jack_nframes_t duration, Visibility v = Visibility (0));
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue