Avoid unnecessary copy of vector
This commit is contained in:
@@ -798,7 +798,7 @@ namespace Menu {
|
||||
};
|
||||
|
||||
msgBox::msgBox() {}
|
||||
msgBox::msgBox(int width, int boxtype, vector<string> content, string title)
|
||||
msgBox::msgBox(int width, int boxtype, const vector<string>& content, string title)
|
||||
: width(width), boxtype(boxtype) {
|
||||
auto tty_mode = Config::getB("tty_mode");
|
||||
auto rounded = Config::getB("rounded_corners");
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace Menu {
|
||||
Select
|
||||
};
|
||||
msgBox();
|
||||
msgBox(int width, int boxtype, vector<string> content, string title);
|
||||
msgBox(int width, int boxtype, const vector<string>& content, string title);
|
||||
|
||||
//? Draw and return box as a string
|
||||
string operator()();
|
||||
|
||||
Reference in New Issue
Block a user