SysConf: std::move name in Entry constructor

Allows code to move into the constructor, avoiding copies entirely.
This commit is contained in:
Lioncash committed 2020-12-29 19:09:57 -05:00
1 parent 05094ab51f
commit 1bbfde62d1
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -47,8 +47,8 @@ public:
ByteBool = 7,
};
Entry(Type type_, const std::string& name_);
Entry(Type type_, const std::string& name_, std::vector<u8> bytes_);
Entry(Type type_, std::string name_);
Entry(Type type_, std::string name_, std::vector<u8> bytes_);
// Intended for use with the non array types.
template <typename T>