argument to mono_directive must be const string, or passing temporaries to it is forbidden by C++.
parent
bc776f516b
commit
d998580e10
|
|
@ -1176,7 +1176,7 @@ void FSLSLPreprocessor::display_error(std::string err)
|
|||
}
|
||||
|
||||
|
||||
bool FSLSLPreprocessor::mono_directive(std::string& text, bool agent_inv)
|
||||
bool FSLSLPreprocessor::mono_directive(std::string const& text, bool agent_inv)
|
||||
{
|
||||
bool domono = agent_inv;
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ public:
|
|||
: mCore(corep), waving(FALSE), mClose(FALSE)
|
||||
{}
|
||||
|
||||
static bool mono_directive(std::string& text, bool agent_inv = true);
|
||||
static bool mono_directive(std::string const& text, bool agent_inv = true);
|
||||
std::string encode(std::string script);
|
||||
std::string decode(std::string script);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue