Skip to content

Commit

Permalink
fix: make getters return string_view
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirdEyeSqueegee committed Sep 9, 2023
1 parent 940de6c commit 842951d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CommonLibSF/include/SFSE/Interfaces.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,19 +120,19 @@ namespace SFSE
SetCharBuffer(a_plugin, std::span{ pluginName });
}

constexpr std::string GetPluginName() noexcept
constexpr std::string_view GetPluginName() noexcept
{
return std::string{ pluginName };
return std::string_view{ pluginName };
}

constexpr void AuthorName(std::string_view a_name) noexcept
{
SetCharBuffer(a_name, std::span{ author });
}

constexpr std::string GetAuthorName() noexcept
constexpr std::string_view GetAuthorName() noexcept
{
return std::string{ author };
return std::string_view{ author };
}

constexpr void UsesSigScanning(bool a_value) noexcept
Expand Down

0 comments on commit 842951d

Please sign in to comment.