mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-11-24 14:29:20 +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 parent
d480c1011c
commit
e6f3dab2e1
3 files changed
+7
-7
No files matched your search
@@ -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