diff --git a/src/olympic/turbine/include/turbine/gfx.hpp b/src/olympic/turbine/include/turbine/gfx.hpp index 4356423e..6a8e1900 100644 --- a/src/olympic/turbine/include/turbine/gfx.hpp +++ b/src/olympic/turbine/include/turbine/gfx.hpp @@ -26,7 +26,7 @@ void removeDrawer(Context &ctx, Drawer *cd) noexcept; ox::Error initGfx(Context &ctx) noexcept; -ox::Error setWindowIcon(Context &ctx, ox::SpanView iconPng) noexcept; +ox::Error setWindowIcon(Context &ctx, ox::SpanView const &iconPng) noexcept; void setWindowTitle(Context &ctx, ox::StringViewCR title) noexcept; diff --git a/src/olympic/turbine/src/glfw/gfx.cpp b/src/olympic/turbine/src/glfw/gfx.cpp index 9e1dc779..f2157cc4 100644 --- a/src/olympic/turbine/src/glfw/gfx.cpp +++ b/src/olympic/turbine/src/glfw/gfx.cpp @@ -235,7 +235,7 @@ struct IconData { }; [[nodiscard]] -static ox::Result toGlfwImgPixels(ox::SpanView iconPng) noexcept { +static ox::Result toGlfwImgPixels(ox::SpanView const &iconPng) noexcept { ox::Result out; unsigned w{}, h{}; if (lodepng::decode(out.value.pixels, w, h, iconPng.data(), LodePNGColorType::LCT_RGBA)) { @@ -246,7 +246,7 @@ static ox::Result toGlfwImgPixels(ox::SpanView iconPng) noexc return out; } -ox::Error setWindowIcon(Context &ctx, ox::SpanView iconPng) noexcept { +ox::Error setWindowIcon(Context &ctx, ox::SpanView const &iconPng) noexcept { OX_REQUIRE_M(icon, toGlfwImgPixels(iconPng)); GLFWimage const img { .width = icon.w,