Make std::string-using script funcs pass around const references

This makes it so that whenever a string is passed into these functions,
it's no longer needlessly copied.
This commit is contained in:
Misa
2020-07-06 11:19:24 -04:00
committed by Ethan Lee
parent d480c1011c
commit e6f3dab2e1
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
#include "Script.h"
#include <SDL.h>
void scriptclass::load(std::string name)
void scriptclass::load(const std::string& name)
{
//loads script name t into the array
position = 0;