Fix compilation of FFMpeg plugin/emscripten/ShaderNode

This commit is contained in:
SirLynix 2023-08-24 17:58:49 +02:00
parent 1c54c9a914
commit d4b2cede15
5 changed files with 5 additions and 5 deletions

View File

@ -393,7 +393,7 @@ namespace
int m_videoStream;
};
bool CheckVideoExtension(const std::string_view& extension)
bool CheckVideoExtension(std::string_view extension)
{
const AVOutputFormat* format = av_guess_format(nullptr, extension.data(), nullptr);
if (!format)

View File

@ -140,7 +140,7 @@ namespace Nz::GL
return true;
}
bool WebContext::ImplementFallback(const std::string_view& function)
bool WebContext::ImplementFallback(std::string_view function)
{
if (Context::ImplementFallback(function))
return true;

View File

@ -113,7 +113,7 @@ namespace Nz::GL
}
}
bool WebLoader::ImplementFallback(const std::string_view& /*function*/)
bool WebLoader::ImplementFallback(std::string_view /*function*/)
{
return false;
}

View File

@ -64,7 +64,7 @@ enum class TextureType
constexpr std::size_t TextureTypeCount = static_cast<std::size_t>(TextureType::Max) + 1;
template<typename T> std::optional<T> DecodeEnum(const std::string_view& str);
template<typename T> std::optional<T> DecodeEnum(std::string_view str);
const char* EnumToString(BufferType bufferType);
const char* EnumToString(InputRole role);
const char* EnumToString(PrimitiveType input);

View File

@ -1,7 +1,7 @@
#include <ShaderNode/Enums.hpp>
template<typename T>
std::optional<T> DecodeEnum(const std::string_view& str)
std::optional<T> DecodeEnum(std::string_view str)
{
constexpr std::size_t ValueCount = static_cast<std::size_t>(T::Max) + 1;
for (std::size_t i = 0; i < ValueCount; ++i)