Use string_view in the remaining Class methods and push string_views closer to the MyGUI boundary

This commit is contained in:
Evil Eye 2022-08-23 22:14:27 +02:00
parent a5a0d26976
commit 0df45a90b3
39 changed files with 88 additions and 92 deletions

View file

@ -27,10 +27,10 @@ namespace Interpreter
virtual void setLocalFloat (int index, float value) = 0;
virtual void messageBox (const std::string& message,
virtual void messageBox(std::string_view message,
const std::vector<std::string>& buttons) = 0;
void messageBox (const std::string& message)
void messageBox(std::string_view message)
{
std::vector<std::string> empty;
messageBox (message, empty);