mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 13:57:34 +00:00
Shell: Add some obvious move() calls in AST constructors
This commit is contained in:
parent
379e6f5817
commit
08e5371f44
1 changed files with 4 additions and 4 deletions
|
@ -257,7 +257,7 @@ public:
|
||||||
virtual bool is_string() const override { return m_split.is_null(); }
|
virtual bool is_string() const override { return m_split.is_null(); }
|
||||||
virtual bool is_list() const override { return !m_split.is_null(); }
|
virtual bool is_list() const override { return !m_split.is_null(); }
|
||||||
StringValue(String string, String split_by = {}, bool keep_empty = false)
|
StringValue(String string, String split_by = {}, bool keep_empty = false)
|
||||||
: m_string(string)
|
: m_string(move(string))
|
||||||
, m_split(move(split_by))
|
, m_split(move(split_by))
|
||||||
, m_keep_empty(keep_empty)
|
, m_keep_empty(keep_empty)
|
||||||
{
|
{
|
||||||
|
@ -275,7 +275,7 @@ public:
|
||||||
virtual ~GlobValue();
|
virtual ~GlobValue();
|
||||||
virtual bool is_glob() const override { return true; }
|
virtual bool is_glob() const override { return true; }
|
||||||
GlobValue(String glob)
|
GlobValue(String glob)
|
||||||
: m_glob(glob)
|
: m_glob(move(glob))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -289,7 +289,7 @@ public:
|
||||||
RefPtr<Value> resolve_without_cast(RefPtr<Shell>) override;
|
RefPtr<Value> resolve_without_cast(RefPtr<Shell>) override;
|
||||||
virtual ~SimpleVariableValue();
|
virtual ~SimpleVariableValue();
|
||||||
SimpleVariableValue(String name)
|
SimpleVariableValue(String name)
|
||||||
: m_name(name)
|
: m_name(move(name))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -316,7 +316,7 @@ public:
|
||||||
virtual ~TildeValue();
|
virtual ~TildeValue();
|
||||||
virtual bool is_string() const override { return true; }
|
virtual bool is_string() const override { return true; }
|
||||||
TildeValue(String name)
|
TildeValue(String name)
|
||||||
: m_username(name)
|
: m_username(move(name))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue