diff --git a/src/btop_menu.cpp b/src/btop_menu.cpp index 3d721a8..6a47e29 100644 --- a/src/btop_menu.cpp +++ b/src/btop_menu.cpp @@ -798,7 +798,7 @@ namespace Menu { }; msgBox::msgBox() {} - msgBox::msgBox(int width, int boxtype, vector content, string title) + msgBox::msgBox(int width, int boxtype, const vector& content, string title) : width(width), boxtype(boxtype) { auto tty_mode = Config::getB("tty_mode"); auto rounded = Config::getB("rounded_corners"); diff --git a/src/btop_menu.hpp b/src/btop_menu.hpp index 63974e4..3b02837 100644 --- a/src/btop_menu.hpp +++ b/src/btop_menu.hpp @@ -61,7 +61,7 @@ namespace Menu { Select }; msgBox(); - msgBox(int width, int boxtype, vector content, string title); + msgBox(int width, int boxtype, const vector& content, string title); //? Draw and return box as a string string operator()();