From 0e8e5294f4764ab02cf030ad71116b5c2c6bd64d Mon Sep 17 00:00:00 2001 From: prisixia Date: Sat, 29 Apr 2023 15:33:48 +0200 Subject: [PATCH] Rename `requires` to `_requires` `requires` is a keyword in C++20. Despite this written in C++17 as of now, some editors and linters may handle it like a keyword. --- src/starbound/metadata.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/starbound/metadata.cpp b/src/starbound/metadata.cpp index 926d10f..4cb4e80 100644 --- a/src/starbound/metadata.cpp +++ b/src/starbound/metadata.cpp @@ -64,8 +64,8 @@ void Metadata::SetVersion(const std::string version) { m_version = version; } void Metadata::SetLink(const std::string link) { m_link = link; } -void Metadata::SetRequires(const std::vector requires) { - m_requires = requires; +void Metadata::SetRequires(const std::vector _requires) { + m_requires = _requires; } void Metadata::Serialize(const std::filesystem::path path) const {