mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-03-06 14:27:44 +00:00
methods should be marked as noexcept because they cannot throw
This commit is contained in:
parent
b8aac0a4f8
commit
bc774ca10e
Src/Util
|
@ -299,7 +299,7 @@ namespace Util
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
Node &Node::operator=(Node &&rhs)
|
Node &Node::operator=(Node &&rhs) noexcept
|
||||||
{
|
{
|
||||||
Swap(rhs);
|
Swap(rhs);
|
||||||
return *this;
|
return *this;
|
||||||
|
@ -331,7 +331,7 @@ namespace Util
|
||||||
DeepCopy(that);
|
DeepCopy(that);
|
||||||
}
|
}
|
||||||
|
|
||||||
Node::Node(Node &&that)
|
Node::Node(Node &&that) noexcept
|
||||||
{
|
{
|
||||||
Swap(that);
|
Swap(that);
|
||||||
}
|
}
|
||||||
|
|
|
@ -305,11 +305,11 @@ namespace Util
|
||||||
void Serialize(std::ostream *os, size_t indent_level = 0) const;
|
void Serialize(std::ostream *os, size_t indent_level = 0) const;
|
||||||
std::string ToString(size_t indent_level = 0) const;
|
std::string ToString(size_t indent_level = 0) const;
|
||||||
Node &operator=(const Node &rhs);
|
Node &operator=(const Node &rhs);
|
||||||
Node &operator=(Node &&rhs);
|
Node& operator=(Node&& rhs) noexcept;
|
||||||
Node(const std::string &key);
|
Node(const std::string &key);
|
||||||
Node(const std::string &key, const std::string &value);
|
Node(const std::string &key, const std::string &value);
|
||||||
Node(const Node &that);
|
Node(const Node &that);
|
||||||
Node(Node &&that);
|
Node(Node&& that) noexcept;
|
||||||
~Node();
|
~Node();
|
||||||
};
|
};
|
||||||
} // Config
|
} // Config
|
||||||
|
|
Loading…
Reference in a new issue