mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-25 03:35:59 +00:00
Common/Core: Minor rvalue reference related cleanups.
This commit is contained in:
parent
42c03c4dad
commit
732032cdb2
6 changed files with 12 additions and 46 deletions
|
@ -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));
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue