Avoid unnecessary copy of vector

This commit is contained in:
bad code
2024-09-22 16:44:02 +02:00
committed by Steffen
parent da9d5a47bc
commit 38886e703f
2 changed files with 2 additions and 2 deletions

View File

@@ -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");

View File

@@ -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()();