mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user