slightly improve efficiency of drawing grid lines by passing by reference, not value
This commit is contained in:
parent
dde366d6ef
commit
d4bca18108
|
@ -53,7 +53,7 @@ GridLines::hide ()
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
GridLines::draw (std::vector<Ruler::Mark> marks)
|
GridLines::draw (std::vector<Ruler::Mark> const & marks)
|
||||||
{
|
{
|
||||||
lines.clear();
|
lines.clear();
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ public:
|
||||||
GridLines (ArdourCanvas::Container* group, double screen_height);
|
GridLines (ArdourCanvas::Container* group, double screen_height);
|
||||||
~GridLines ();
|
~GridLines ();
|
||||||
|
|
||||||
void draw (std::vector<ArdourCanvas::Ruler::Mark> marks);
|
void draw (std::vector<ArdourCanvas::Ruler::Mark> const & marks);
|
||||||
|
|
||||||
void show();
|
void show();
|
||||||
void hide();
|
void hide();
|
||||||
|
|
Loading…
Reference in New Issue