argument to mono_directive must be const string, or passing temporaries to it is forbidden by C++.

Nicky 2012-03-29 02:11:02 +02:00
parent bc776f516b
commit d998580e10
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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);