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 authored and Ethan Lee committed 2020-07-06 11:19:24 -04:00
1 parent d480c1011c
commit e6f3dab2e1
3 files changed
+7 -7

No files matched your search

+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;