1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

[CSM] Add local formspecs. (#5094)

This commit is contained in:
red-001 2017-01-24 16:26:15 +00:00 committed by Loïc Blot
parent 2c19d51409
commit c42c53fccf
12 changed files with 126 additions and 67 deletions

View file

@ -548,7 +548,7 @@ private:
class FormspecFormSource: public IFormSource
{
public:
FormspecFormSource(std::string formspec)
FormspecFormSource(const std::string &formspec)
{
m_formspec = formspec;
}
@ -556,7 +556,7 @@ public:
~FormspecFormSource()
{}
void setForm(std::string formspec) {
void setForm(const std::string &formspec) {
m_formspec = FORMSPEC_VERSION_STRING + formspec;
}