mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 15:36:24 +01:00
slightly improve efficiency of drawing grid lines by passing by reference, not value
This commit is contained in:
parent
dde366d6ef
commit
d4bca18108
2 changed files with 2 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ GridLines::hide ()
|
|||
}
|
||||
|
||||
void
|
||||
GridLines::draw (std::vector<Ruler::Mark> marks)
|
||||
GridLines::draw (std::vector<Ruler::Mark> const & marks)
|
||||
{
|
||||
lines.clear();
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public:
|
|||
GridLines (ArdourCanvas::Container* group, double screen_height);
|
||||
~GridLines ();
|
||||
|
||||
void draw (std::vector<ArdourCanvas::Ruler::Mark> marks);
|
||||
void draw (std::vector<ArdourCanvas::Ruler::Mark> const & marks);
|
||||
|
||||
void show();
|
||||
void hide();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue