Skip to content

Commit

Permalink
fix: add nodiscard and const to getters
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirdEyeSqueegee committed Sep 9, 2023
1 parent 842951d commit 00d2832
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CommonLibSF/include/SFSE/Interfaces.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ namespace SFSE
pluginVersion = a_version;
}

constexpr std::uint32_t GetPluginVersion() noexcept
[[nodiscard]] constexpr std::uint32_t GetPluginVersion() const noexcept
{
return pluginVersion;
}
Expand All @@ -120,7 +120,7 @@ namespace SFSE
SetCharBuffer(a_plugin, std::span{ pluginName });
}

constexpr std::string_view GetPluginName() noexcept
[[nodiscard]] constexpr std::string_view GetPluginName() const noexcept
{
return std::string_view{ pluginName };
}
Expand All @@ -130,7 +130,7 @@ namespace SFSE
SetCharBuffer(a_name, std::span{ author });
}

constexpr std::string_view GetAuthorName() noexcept
[[nodiscard]] constexpr std::string_view GetAuthorName() const noexcept
{
return std::string_view{ author };
}
Expand Down

0 comments on commit 00d2832

Please sign in to comment.