Merge pull request #8579 from jordan-woyak/rvalue-cleanups

Common/Core: Minor rvalue reference related cleanups.
This commit is contained in:
Tilka
2020-01-25 21:09:22 +00:00
committed by GitHub
6 changed files with 12 additions and 46 deletions

View File

@ -185,13 +185,7 @@ bool IniFile::Exists(std::string_view section_name, std::string_view key) const
return section->Exists(key);
}
void IniFile::SetLines(std::string_view section_name, const std::vector<std::string>& lines)
{
Section* section = GetOrCreateSection(section_name);
section->SetLines(lines);
}
void IniFile::SetLines(std::string_view section_name, std::vector<std::string>&& lines)
void IniFile::SetLines(std::string_view section_name, std::vector<std::string> lines)
{
Section* section = GetOrCreateSection(section_name);
section->SetLines(std::move(lines));

View File

@ -143,8 +143,7 @@ public:
bool GetKeys(std::string_view section_name, std::vector<std::string>* keys) const;
void SetLines(std::string_view section_name, const std::vector<std::string>& lines);
void SetLines(std::string_view section_name, std::vector<std::string>&& lines);
void SetLines(std::string_view section_name, std::vector<std::string> lines);
bool GetLines(std::string_view section_name, std::vector<std::string>* lines,
bool remove_comments = true) const;