Always pass the script string around by reference
This commit is contained in:
@@ -23,9 +23,9 @@ class Script {
|
||||
shared_ptr<ScriptType> _returnType;
|
||||
|
||||
explicit Script();
|
||||
void Parse(string script);
|
||||
void Parse(const string& script);
|
||||
public:
|
||||
static Script* Create(string script);
|
||||
static Script* Create(const string& script);
|
||||
DiagnosticsHolder* Diagnostics;
|
||||
|
||||
~Script();
|
||||
|
||||
Reference in New Issue
Block a user