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:
parent
2c19d51409
commit
c42c53fccf
12 changed files with 126 additions and 67 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue